gaozhangmin commented on a change in pull request #14903:
URL: https://github.com/apache/pulsar/pull/14903#discussion_r836073675



##########
File path: 
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/ZKMetadataStore.java
##########
@@ -386,7 +386,13 @@ private void internalStorePut(OpPut opPut) {
                                 put(opPut.getPath(), opPut.getData(), 
Optional.of(-1L)).thenAccept(
                                                 s -> future.complete(s))
                                         .exceptionally(ex -> {
-                                            
future.completeExceptionally(MetadataStoreException.wrap(ex.getCause()));
+                                            if (ex instanceof 
BadVersionException) {

Review comment:
       BadVersion exception happened with concurrent write to same ZNODE.  I 
think it's ok when some writer failed with BadVersionException because of 
competing failed. @wangjialing218 




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

To unsubscribe, e-mail: [email protected]

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


Reply via email to