Re: Occasional Out of order tuples when emitting from a thread

2017-02-21 Thread Ashwin Chandra Putta
l thread safe queue > > } > > ***—* > *From: *Munagala Ramanath <r...@datatorrent.com> > *To: *us...@apex.apache.org > *CC: *"dev@apex.apache.org" <dev@apex.apache.org>, Allan De Leon < > adel...@threatmetrix.c

Re: Occasional Out of order tuples when emitting from a thread

2017-02-21 Thread Sunil Parmar
m Zhu <t...@threatmetrix.com<mailto:t...@threatmetrix.com>> Subject: Re: Occasional Out of order tuples when emitting from a thread Date: 2017-02-21 10:08 (-0800) List: us...@apex.apache.org<https://lists.apache.org/list.html?us...@apex.apache.org> Please note that tuples should not be

Re: Occasional Out of order tuples when emitting from a thread

2017-02-21 Thread Munagala Ramanath
Please note that tuples should not be emitted by any thread other than the main operator thread. A common pattern is to use a thread-safe queue and have worker threads enqueue tuples there; the main operator thread then pulls tuples from the queue and emits them. Ram On Tue, Feb 21, 2017 at