You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/03/27 18:44:04 UTC
[GitHub] [pulsar] rdhabalia opened a new pull request #3917: [pulsar-broker]
fix ClassCastException at ZkIsolatedBookieEnsemblePlacementPolicy
rdhabalia opened a new pull request #3917: [pulsar-broker] fix ClassCastException at ZkIsolatedBookieEnsemblePlacementPolicy
URL: https://github.com/apache/pulsar/pull/3917
### Motivation
Fix `ClassCastException` while initializing `ZkIsolatedBookieEnsemblePlacementPolicy`
```
java.lang.ClassCastException: java.util.concurrent.atomic.AtomicReference cannot be cast to org.apache.pulsar.zookeeper.ZooKeeperCache
at org.apache.pulsar.zookeeper.ZkIsolatedBookieEnsemblePlacementPolicy.getAndSetZkCache(ZkIsolatedBookieEnsemblePlacementPolicy.java:89) ~[classes/:?]
at org.apache.pulsar.zookeeper.ZkIsolatedBookieEnsemblePlacementPolicy.initialize(ZkIsolatedBookieEnsemblePlacementPolicy.java:79) ~[classes/:?]
at org.apache.pulsar.zookeeper.ZkIsolatedBookieEnsemblePlacementPolicy.initialize(ZkIsolatedBookieEnsemblePlacementPolicy.java:1) ~[classes/:?]
at org.apache.bookkeeper.client.BookKeeper.initializeEnsemblePlacementPolicy(BookKeeper.java:562) ~[bookkeeper-server-4.9.0.jar:4.9.0]
at org.apache.bookkeeper.client.BookKeeper.<init>(BookKeeper.java:493) ~[bookkeeper-server-4.9.0.jar:4.9.0]
at org.apache.bookkeeper.client.BookKeeper.<init>(BookKeeper.java:368) ~[bookkeeper-server-4.9.0.jar:4.9.0]
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services