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

Simplify leader handling in JcrPackageReplicationStatusEventHandler #2493

Conversation

kwin
Copy link
Contributor

@kwin kwin commented Dec 16, 2020

This solves the NPE being thrown when TopologyEvent.getNewView() returns
null.
This closes #2492

This solves the NPE being thrown when TopologyEvent.getNewView() returns
null.
This closes Adobe-Consulting-Services#2492
@kwin kwin requested a review from davidjgonzalez December 16, 2020 17:23
@joerghoh
Copy link
Contributor

For these cases I would opt for a marker service "ClusterLeader", which a component can depend on. But the implementation looks good.

@kwin
Copy link
Contributor Author

kwin commented Dec 21, 2020

For these cases I would opt for a marker service "ClusterLeader", which a component can depend on

That would be a nice solution for #2498. For the JcrPackageReplicationStatusEventHandler that is IMHO not necessary and too much overhead.

@kwin
Copy link
Contributor Author

kwin commented Dec 21, 2020

Proposed a better solution based on @joerghoh solution in #2499.

@kwin kwin closed this Dec 21, 2020
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.

NPE in JcrPackageReplicationStatusEventHandler
2 participants