HeartSaVioR commented on issue #25135: [SPARK-28367][SS] Use new 
KafkaConsumer.poll API in Kafka connector
URL: https://github.com/apache/spark/pull/25135#issuecomment-512718254
 
 
   It feels me like `consumer.poll(jt.Duration.ZERO)` just doesn't work. 
   
   Maybe it's only me, but I'm not sure I understand why there's no alternative 
being proposed on widely used patterns. If we can't use 
`consumer.poll(jt.Duration.ZERO)` to avoid the unnecessary wait where record to 
pull is not available, I feel Kafka should have separate public API on 
explicitly saying "no record" but interested on others like metadata.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to