Skip to content

DRILL-8122: Change kafka metadata obtaining due to KAFKA-5697#2456

Merged
jnturton merged 1 commit intoapache:masterfrom
rymarm:DRILL-8122
Feb 16, 2022
Merged

DRILL-8122: Change kafka metadata obtaining due to KAFKA-5697#2456
jnturton merged 1 commit intoapache:masterfrom
rymarm:DRILL-8122

Conversation

@rymarm
Copy link
Copy Markdown
Member

@rymarm rymarm commented Feb 9, 2022

DRILL-8122: Change kafka metadata obtaining due to KAFKA-5697

Description

Consumer#poll(long) is deprecated starting from kafka 2.0. In Drill, Consumer#poll is used in 2 places:

  1. By its direct purpose
  2. As an only one way to make a Kafka consumer update metadata

Kafka hasn't implemented a separate method to update metadata. And new implementation Consumer#poll(Duration) doesn't work with a hack that Drill use: poll(0), due to changed logic: apache/kafka#4855 . That is why I had to use a loop with a timeout to workaround the absent separate method.

Documentation

-

Testing

Unit tests

Copy link
Copy Markdown
Member

@luocooong luocooong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rymarm Thanks for the contribution, there are a few comments here.

Copy link
Copy Markdown
Member

@luocooong luocooong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. +1

@jnturton jnturton merged commit 62c001c into apache:master Feb 16, 2022
ashevchuk123 pushed a commit to mapr/incubator-drill that referenced this pull request Oct 28, 2025
cgivre pushed a commit to cgivre/drill that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants