Skip to content

Fix possible leak when removing finalizers #6532

@liubog2008

Description

@liubog2008

Now finalizer is removed if all listed resources are not found. However, all read op is reading cache. It means some resources may not be "seen" when deleting.

Not only kubernetes resources but also data in PD may have this issue. For example, store is leak.

  • Pod is created and the store is created.
  • Instance is marked as offline.
  • Store is still not be "seen". The instance is deleting.
  • All resources are deleted.

We have to ensure all resources(k8s, PD data) are deleted. Do not depends on the cache data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v2for operator v2

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions