You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/02/14 21:37:28 UTC

[GitHub] eolivelli commented on a change in pull request #1130: handle zookeeper session expire in zk ledger manager

eolivelli commented on a change in pull request #1130: handle zookeeper session expire in zk ledger manager
URL: https://github.com/apache/bookkeeper/pull/1130#discussion_r168317638
 
 

 ##########
 File path: bookkeeper-server/src/main/java/org/apache/bookkeeper/meta/AbstractZkLedgerManager.java
 ##########
 @@ -409,7 +426,7 @@ public void processResult(int rc, String path, Object ctx, byte[] data, Stat sta
     public void writeLedgerMetadata(final long ledgerId, final LedgerMetadata metadata,
                                     final GenericCallback<Void> cb) {
         Version v = metadata.getVersion();
-        if (Version.NEW == v || !(v instanceof LongVersion)) {
+        if (!(v instanceof LongVersion)) {
 
 Review comment:
   @sijie do you mean that it is now possible for *v* to be '==' to Version.NEW because it cannot be of the same class so that the test is not useful?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services