Re: poll(0) after subscribe

2016-03-05 Thread Mansi Shah
Guozhang Thanks for the explanation !! Mansi. Sent from my iPhone > On Mar 5, 2016, at 3:38 PM, Guozhang Wang wrote: > > Guozhang

Re: poll(0) after subscribe

2016-03-05 Thread Guozhang Wang
Hi Mansi, 1) subscribe is a lazy call: only the subsequent poll() will do the leg work of talking to broker, registering the subscription, getting assigned partitions and issuing fetch requests to the partition leaders. 2) currently the timeout value for poll() does not count for the time elapsed

poll(0) after subscribe

2016-03-04 Thread Mansi Shah
Hi, I had a question around expected behavior / API expectations. Is subscribe a lazy call? What I mean by that is if I subscribe to a topic and then call poll(0), then is this first poll guaranteed to never return data? Will the data pre-fetch not start as soon as subscribe is called? Is this