Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-3895

Client side NullPointerException in case of empty Multi operation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.6.1
    • 3.7.0, 3.6.2
    • java client
    • None

    Description

      I saw this error in an application that uses Apache BookKeeper DistributedLog library.

      This is a regression on 3.6.x release series

      The bug is in ZooKeeper Java Client.

      Caused by: java.lang.NullPointerExceptionCaused by: java.lang.NullPointerException at org.apache.zookeeper.ZooKeeper.multiInternal(ZooKeeper.java:2105) at org.apache.zookeeper.ZooKeeper.multi(ZooKeeper.java:2050) at org.apache.bookkeeper.zookeeper.ZooKeeperClient.access$1101(ZooKeeperClient.java:70) at org.apache.bookkeeper.zookeeper.ZooKeeperClient$3.zkRun(ZooKeeperClient.java:498) at org.apache.bookkeeper.zookeeper.ZooKeeperClient$ZkRetryRunnable.run(ZooKeeperClient.java:389) at org.apache.bookkeeper.zookeeper.ZooKeeperClient.multi(ZooKeeperClient.java:510) at org.apache.distributedlog.zk.ZKTransaction.execute(ZKTransaction.java:67) at org.apache.distributedlog.BKLogWriteHandler.setLogSegmentTruncationStatus(BKLogWriteHandler.java:1223) at org.apache.distributedlog.BKLogWriteHandler.setLogSegmentsOlderThanDLSNTruncated(BKLogWriteHandler.java:1117) at org.apache.distributedlog.BKLogWriteHandler.lambda$setLogSegmentsOlderThanDLSNTruncated$0(BKLogWriteHandler.java:1083) at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1183) at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2299) at org.apache.distributedlog.BKLogWriteHandler.setLogSegmentsOlderThanDLSNTruncated(BKLogWriteHandler.java:1082) at org.apache.distributedlog.BKAsyncLogWriter.truncate(BKAsyncLogWriter.java:449)

      Attachments

        Activity

          People

            eolivelli Enrico Olivelli
            eolivelli Enrico Olivelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m