Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent race condition while deleting namespace #253

Draft
wants to merge 3 commits into
base: 3.1_ds
Choose a base branch
from

Conversation

eolivelli
Copy link
Collaborator

This patch adds much debug during namespace deletion.

There is a fix for a potential race condition in which:

  • the local cache that knows whether a bundle is assigned is empty
  • the ephemeral z-node /namespace/tenant/namespace/XXXXXX with the id of the bundle is still there

Under this condition the broker tries to delete the /namespace/tenant/namespace and it fails, reporting a misleading error about topics created during the deletion.

I have reproduced the case manually a few times but I don't have a way of consistently reproducing the problem, currently I need 6 brokers with 3 zookeeper nodes.
The fact that I need such system makes me suspect of some problem in the local cache about bundle ownership, that goes out of sync: maybe because the local broker is connected to another zookeeper server in respect to the old "owner" that released the ephemeral node while unloading the bundle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant