Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.9.0.0
-
None
-
None
Description
Assuming a cluster with 2 brokers with unclear leader election disabled:
1. Start brokers 0 and 1
2. Perform partition assignment
3. Broker 0 is elected leader
4. Produce message and wait until metadata is propagated
6. Shutdown follower
7. Produce message
8. Shutdown leader
9. Start follower
10. Wait for leader election
Expected: leader is -1
Actual: leader is 0
We have a test for this, but a bug in `waitUntilLeaderIsElectedOrChanged` means that `newLeaderOpt` is not being checked.