You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the percona mongodb operator fills my kube API logs with deletes of non-existant stateful sets every couple of seconds. This clutters the logs and spills resources on the API server.
In my case, where I run 2 mongos and an arbiter, I get a delete for sts's:
Report
I noticed that the percona mongodb operator fills my kube API logs with deletes of non-existant stateful sets every couple of seconds. This clutters the logs and spills resources on the API server.
In my case, where I run 2 mongos and an arbiter, I get a delete for sts's:
every 6 seconds. See the below screenshot.
More about the problem
Checking the codepaths, I see that it might be intended behaviour (the delete is done, and a
k8serror.IsNotFound(err)
is actually in place to ignore this error, see https://github.com/percona/percona-server-mongodb-operator/blob/main/pkg/controller/perconaservermongodb/psmdb_controller.go#L995 for one example).This seems wrong, I'd assume that after a single attempt, the logic can be stopped to try and delete a non-existing object.
Steps to reproduce
Versions
Anything else?
No response
The text was updated successfully, but these errors were encountered: