pulsar
pulsar copied to clipboard
[improve][meta] Stop election operations when LeaderElectionImpl gets closed
Motivation
In some tests, I noticed that LeaderElectionImpl could continue to make operations and override the closed state.
Modifications
Add checks if the internalState is Closed
Documentation
- [ ]
doc - [ ]
doc-required - [x]
doc-not-needed - [ ]
doc-complete
Fixing a potentially flaky test that uses a bad way to trigger leader election.