You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Mahak Goel <ma...@gmail.com> on 2017/08/21 20:57:29 UTC

Order of tuples

If I have just one instance of a spout and one instance of a bolt, will the tuples be received by the bolt in the same order the spout emitted them? 

Re: Order of tuples

Posted by Mahak Goel <ma...@gmail.com>.
Thanks Arun! 

Sent from my iPhone

> On Aug 21, 2017, at 23:28, Arun Mahadevan <ar...@apache.org> wrote:
> 
> Between two tasks the ordering is maintained. So if the spout and the bolts have a parallelism of one the ordering will be usually maintained. However currently there are some cases where messages are dropped at the source worker if the connection to the destination worker goes down and the messages gets replayed. In this case ordering cannot be guaranteed.
> 
> 
> 
> 
>> On 8/22/17, 2:27 AM, "Mahak Goel" <ma...@gmail.com> wrote:
>> 
>> If I have just one instance of a spout and one instance of a bolt, will the tuples be received by the bolt in the same order the spout emitted them? 
>> 
> 

Re: Order of tuples

Posted by Arun Mahadevan <ar...@apache.org>.
Between two tasks the ordering is maintained. So if the spout and the bolts have a parallelism of one the ordering will be usually maintained. However currently there are some cases where messages are dropped at the source worker if the connection to the destination worker goes down and the messages gets replayed. In this case ordering cannot be guaranteed.




On 8/22/17, 2:27 AM, "Mahak Goel" <ma...@gmail.com> wrote:

>If I have just one instance of a spout and one instance of a bolt, will the tuples be received by the bolt in the same order the spout emitted them? 
>