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/04/05 22:14:17 UTC

[GitHub] [pulsar] rdhabalia opened a new pull request #3991: [pulsar-storm] Fix NPE while emitting next tuple

rdhabalia opened a new pull request #3991: [pulsar-storm] Fix NPE while emitting next tuple
URL: https://github.com/apache/pulsar/pull/3991
 
 
   ### Motivation
   
   [PulsarSpout] removes messages from [pendingMessageRetries](https://github.com/apache/pulsar/blob/master/pulsar-storm/src/main/java/org/apache/pulsar/storm/PulsarSpout.java#L126) but it doesn't remove from the `failedMessages` queue because of that PulsarSpout throws NPE while [emitting next tuple](https://github.com/apache/pulsar/blob/master/pulsar-storm/src/main/java/org/apache/pulsar/storm/PulsarSpout.java#L181)
   
   ````
   stack-trace with old pulsar-storm lib: 1.20
   2019-04-05 18:49:58.240 b.s.util CmsSpout_[1 1] [INFO] Async loop Stacktrace is: {} java.lang.NullPointerException
       at org.apache.pulsar.storm.PulsarSpout.emitNextAvailableTuple(PulsarSpout.java:176)
       at org.apache.pulsar.storm.PulsarSpout.nextTuple(PulsarSpout.java:160)
       at backtype.storm.daemon.executor$fn__7365$fn__7380$fn__7411.invoke(executor.clj:577)
       at backtype.storm.util$async_loop$fn__551.invoke(util.clj:491)
       at clojure.lang.AFn.run(AFn.java:22)
       at java.lang.Thread.run(Thread.java:748)
   ```

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