MarvinCai opened a new pull request #9443:
URL: https://github.com/apache/pulsar/pull/9443


   Fixes #9408
   
   ### Modifications
   Seems the test is flaky because when it kills current leader and wait for 
new leader, it only check single pulsar to verify leader has changed, but cache 
for other pulsars may not 
[refreshed](https://github.com/apache/pulsar/blob/fa41d02bebfd841767846240f3ae574047f118f0/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/cache/impl/MetadataCacheImpl.java#L247)
 by the ZK watch yet, hence we got the Optional.Empty which is leader path 
doesn't exist and they try to become leader.
   
   So update to wait for leader changed for all pulsar, then verify they're all 
see same leader.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to