You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
im running an integration test where i spin up embedded ZK and 2 clustered vertx instances.
at the end of the test i shut them both down.
on shutdown i get the following exception:
08:54:33.779 [vert.x-eventloop-thread-16] FATAL com.linkedin.mario.server.MarioApplication - m1 vertx hit uncaught exception during RUNNING
java.lang.NullPointerException: null
at io.vertx.spi.cluster.zookeeper.impl.ZKAsyncMultiMap.lambda$null$24(ZKAsyncMultiMap.java:189) ~[vertx-zookeeper-3.8.5.jar:3.8.5]
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:1.8.0_172]
at io.vertx.spi.cluster.zookeeper.impl.ZKAsyncMultiMap.lambda$removeAllMatching$26(ZKAsyncMultiMap.java:187) ~[vertx-zookeeper-3.8.5.jar:3.8.5]
at java.util.Optional.ifPresent(Optional.java:159) ~[?:1.8.0_172]
at io.vertx.spi.cluster.zookeeper.impl.ZKAsyncMultiMap.removeAllMatching(ZKAsyncMultiMap.java:186) ~[vertx-zookeeper-3.8.5.jar:3.8.5]
at io.vertx.core.eventbus.impl.clustered.ClusteredEventBus.lambda$setClusterViewChangedHandler$12(ClusteredEventBus.java:274) ~[vertx-core-3.8.5.jar:3.8.5]
at io.vertx.core.impl.HAManager.lambda$checkSubs$12(HAManager.java:520) ~[vertx-core-3.8.5.jar:3.8.5]
at io.vertx.core.impl.HAManager.lambda$runOnContextAndWait$13(HAManager.java:529) ~[vertx-core-3.8.5.jar:3.8.5]
at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.5.jar:3.8.5]
at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.5.jar:3.8.5]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) [netty-common-4.1.42.Final.jar:4.1.42.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510) [netty-common-4.1.42.Final.jar:4.1.42.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518) [netty-transport-4.1.42.Final.jar:4.1.42.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1044) [netty-common-4.1.42.Final.jar:4.1.42.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.42.Final.jar:4.1.42.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.42.Final.jar:4.1.42.Final]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_172]
this happens on the still-alive vertx instance when the 1st instance shuts down.
the actual null is in treeCache.getCurrentChildren(keyPath) in ZKAsyncMultiMap.removeAllMatching():
im running an integration test where i spin up embedded ZK and 2 clustered vertx instances.
at the end of the test i shut them both down.
on shutdown i get the following exception:
this happens on the still-alive vertx instance when the 1st instance shuts down.
the actual null is in
treeCache.getCurrentChildren(keyPath)
in ZKAsyncMultiMap.removeAllMatching():keypath is
/asyncMultiMap/__vertx.subs/__VERTX_ZK_TTL_HANDLER_ADDRESS
this only happens ~30% of the time? so it appears to be a race.
the contents of treecache at that point under "/asyncMultiMap/__vertx.subs" are 3 nodes - all clustered eventbus "topics" for my application
Questions
Do not use this issue tracker to ask questions, instead use one of these channels. Questions will likely be closed without notice.
Version
vertx-zookeeper 3.8.5
Context
see above
Do you have a reproducer?
reproducer is in code i cant share, sadly
Steps to reproduce
Extra
The text was updated successfully, but these errors were encountered: