[
https://issues.apache.org/jira/browse/ZOOKEEPER-3895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mate Szalay-Beko resolved ZOOKEEPER-3895.
-----------------------------------------
Fix Version/s: 3.7.0
Resolution: Fixed
Issue resolved by pull request 1407
[https://github.com/apache/zookeeper/pull/1407]
> Client side NullPointerException in case of empty Multi operation
> -----------------------------------------------------------------
>
> Key: ZOOKEEPER-3895
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3895
> Project: ZooKeeper
> Issue Type: Bug
> Components: java client
> Affects Versions: 3.6.1
> Reporter: Enrico Olivelli
> Assignee: Enrico Olivelli
> Priority: Blocker
> Fix For: 3.6.2, 3.7.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> 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.
> {code:java}
> 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){code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)