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

Delete local-policies and invalidate cache when namespace is deleted #352

Merged
merged 1 commit into from
Apr 13, 2017

Conversation

rdhabalia
Copy link
Contributor

Motivation

When namespace is deleted, broker cleans up global-policies and removes namespace-ownership node but it doesn't delete local-policies (which contains bundle-data) and and doesn't clear NamespaceBundleFactory's cache which makes broker to keep invalid bundle data. So, it cause issue while creating same namespace again with different bundle-data.

Modifications

Delete namespace policies from localZk and invalid bundle-cache from broker.

Result

It allows to delete namespace and recreate same namespace with different bundle-data.

@rdhabalia rdhabalia added the type/bug The PR fixed a bug or issue reported a bug label Apr 13, 2017
@rdhabalia rdhabalia added this to the 1.18 milestone Apr 13, 2017
@rdhabalia rdhabalia self-assigned this Apr 13, 2017
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants