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

register listener on dynamic-config zpath even if deserialization fail on service startup #351

Merged
merged 1 commit into from
Apr 13, 2017

Conversation

rdhabalia
Copy link
Contributor

Motivation

If user creates/updates dynamic-config znode with invalid json-map then deserialization fails and broker-service doesn't set the watch-listener on the znode so, updating znode again with the correct data will not trigger the listener and broker will not be able to update the configuration.

Modifications

Register dynamic-config listener regardless deserialization of dynamic-config json map.

Result

Broker service can set watch-listener even if dynamic-config json is invalid and failed to deserialize it.

@rdhabalia rdhabalia added the type/bug The PR fixed a bug or issue reported a bug label Apr 12, 2017
@rdhabalia rdhabalia added this to the 1.18 milestone Apr 12, 2017
@rdhabalia rdhabalia self-assigned this Apr 12, 2017
@merlimat merlimat merged commit bd5a622 into apache:master Apr 13, 2017
@rdhabalia rdhabalia deleted the invalid_json branch June 21, 2017 18:54
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.

3 participants