linlinnn edited a comment on issue #10522:
URL: https://github.com/apache/pulsar/issues/10522#issuecomment-836110170


   This issue caused by mockZookeeper, because all brokers share the same 
mockZookeeper and same `SessionId`
   ```java
   if (res.getStat().isCreatedBySelf()) {  // same `SessionId`, should be false 
if we connect a real zk
       // The existing value is different but was created from the same session
       return store.delete(path, Optional.of(res.getStat().getVersion()))
               .thenCompose(__ -> tryToBecomeLeader());
   }
   ```
   


-- 
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