[
https://issues.apache.org/jira/browse/STORM-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16465011#comment-16465011
]
Stig Rohde Døssing commented on STORM-3059:
-------------------------------------------
The issue is
https://github.com/apache/storm/blob/v1.2.2/external/storm-kafka-client/src/main/java/org/apache/storm/kafka/spout/KafkaSpout.java#L507.
If the processing guarantee is not AT_LEAST_ONCE, the offset managers map is
empty.
> KafkaSpout throws NPE when hitting a null tuple if the processing guarantee
> is not AT_LEAST_ONCE
> ------------------------------------------------------------------------------------------------
>
> Key: STORM-3059
> URL: https://issues.apache.org/jira/browse/STORM-3059
> Project: Apache Storm
> Issue Type: Bug
> Components: storm-kafka-client
> Affects Versions: 2.0.0, 1.1.3, 1.0.7, 1.2.2
> Reporter: Stig Rohde Døssing
> Assignee: Stig Rohde Døssing
> Priority: Major
>
> Introduced with STORM-2994
> {quote}
> java.lang.NullPointerException: null
> at
> org.apache.storm.kafka.spout.KafkaSpout.emitOrRetryTuple(KafkaSpout.java:507)
> ~[stormjar.jar:?]
> at
> org.apache.storm.kafka.spout.KafkaSpout.emitIfWaitingNotEmitted(KafkaSpout.java:440)
> ~[stormjar.jar:?]
> at
> org.apache.storm.kafka.spout.KafkaSpout.nextTuple(KafkaSpout.java:308)
> ~[stormjar.jar:?]
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)