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 2018/03/16 21:41:11 UTC

[GitHub] jai1 opened a new pull request #1401: NPE in PersistentReplicator in Debug mode since messageId is not set ���

jai1 opened a new pull request #1401: NPE in PersistentReplicator in Debug mode since messageId is not set …
URL: https://github.com/apache/incubator-pulsar/pull/1401
 
 
   …during MessageImpl.deserialize
   
   The message is constructed in PersistentReplicator.java:216, this message has messageId as null.
   
   When Debug mode is enabled and getMessageId is called you get an exception
   
   ```
   19:15:20.938 [bookkeeper-ml-workers-41-1] ERROR o.a.p.b.s.p.PersistentReplicator     - [persistent://XXXXX][X -> Y] Unexpected exception: Cannot get the message id of a mess
   age that was not received
   java.lang.NullPointerException: Cannot get the message id of a message that was not received
           at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:209) ~[guava-15.0.jar:na]
           at org.apache.pulsar.client.impl.MessageImpl.getMessageId(MessageImpl.java:192) ~[pulsar-client-1.20.6-incubating-yahoo.jar:1.20.6-incubating-yahoo]
           at org.apache.pulsar.broker.service.persistent.PersistentReplicator.readEntriesComplete(PersistentReplicator.java:235) ~[pulsar-broker-1.20.6-incubating-yahoo.jar:1.20.6-incubating-yahoo]
           at org.apache.bookkeeper.mledger.impl.OpReadEntry.lambda$checkReadCompletion$2(OpReadEntry.java:131) [managed-ledger-1.20.6-incubating-yahoo.jar:1.20.6-incubating-yahoo]
           at org.apache.bookkeeper.mledger.util.SafeRun$1.safeRun(SafeRun.java:30) ~[managed-ledger-1.20.6-incubating-yahoo.jar:1.20.6-incubating-yahoo]
           at org.apache.bookkeeper.util.SafeRunnable.run(SafeRunnable.java:31) ~[bookkeeper-server-4.3.1.74-yahoo.jar:4.3.1.74-yahoo]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_131]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_131]
           at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) ~[netty-all-4.0.46.Final.jar:4.0.46.Final]
           at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_131]
   ```
   

----------------------------------------------------------------
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