[ https://issues.apache.org/jira/browse/KAFKA-15908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886778#comment-17886778 ]
Lianet Magrans commented on KAFKA-15908: ---------------------------------------- Bumping this one up, as this is required to enable the new consumer by default (link added). The new consumer does not support this poll but it's still used in tests (I'm assuming this task will remove the deprecated poll and replace it with the new one in all tests that still use it). > Remove deprecated Consumer API poll(long timeout) > ------------------------------------------------- > > Key: KAFKA-15908 > URL: https://issues.apache.org/jira/browse/KAFKA-15908 > Project: Kafka > Issue Type: Sub-task > Components: clients, consumer > Reporter: Kirk True > Assignee: Kirk True > Priority: Major > Labels: consumer-threading-refactor, timeout > Fix For: 4.0.0 > > > Per > [KIP-266|https://cwiki.apache.org/confluence/display/KAFKA/KIP-266%3A+Fix+consumer+indefinite+blocking+behavior], > the {{Consumer.poll(long timeout)}} method was deprecated back in 2.0.0. > In 3.7, there are two implementations, each with different behavior: > * The {{LegacyKafkaConsumer}} implementation will continue to work but will > log a warning about its removal > * The {{AsyncKafkaConsumer}} implementation will throw an error. > In 4.0, the `poll` method that takes a single `long` timeout will be removed > altogether. -- This message was sent by Atlassian Jira (v8.20.10#820010)