[
https://issues.apache.org/jira/browse/STORM-3058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16465340#comment-16465340
]
[email protected] commented on STORM-3058:
--------------------------------------------
Thanks [~Srdo].
Your answer is very helpful to me.
> set TOPOLOGY_MAX_SPOUT_PENDING to one,but can get more than one tuple in bolt
> -----------------------------------------------------------------------------
>
> Key: STORM-3058
> URL: https://issues.apache.org/jira/browse/STORM-3058
> Project: Apache Storm
> Issue Type: Bug
> Components: storm-kafka
> Affects Versions: 0.10.2
> Reporter: [email protected]
> Priority: Major
>
> spout在nextTuple里可能会一次拉取到多条kafka消息,会保持到_waitingToEmit里,然后逐条发射,即使把TOPOLOGY_MAX_SPOUT_PENDING设置成1,当第一条tuple被fail时,bolt里仍然会收到后续的消息,直到_waitingToEmit全发射完。
> 这和我认为的TOPOLOGY_MAX_SPOUT_PENDING的意思是不是不一样呢,我希望消息能严格逐条处理,我的拓扑的worker数,spout和bolt的并行度都设置成1
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)