Skip to content

[SPARK-48614][SQL][SS] Cleanup deprecated api usage related to kafka-clients#46968

Closed
wayneguow wants to merge 1 commit intoapache:masterfrom
wayneguow:kafka
Closed

[SPARK-48614][SQL][SS] Cleanup deprecated api usage related to kafka-clients#46968
wayneguow wants to merge 1 commit intoapache:masterfrom
wayneguow:kafka

Conversation

@wayneguow
Copy link
Contributor

@wayneguow wayneguow commented Jun 13, 2024

What changes were proposed in this pull request?

There are some deprecated classes or methods of kafka-clients called in Spark:

  1. DescribeTopicsResult.all() -> DescribeTopicsResult.allTopicNames()
  2. Consumer.poll(final long timeoutMs) -> Consumer.poll(final Duration timeout)
  3. KafkaConsumer.poll(final long timeoutMs) -> KafkaConsumer.poll(final Duration timeout)
  4. DefaultPartitioner

Why are the changes needed?

Clean up deprecated API usage.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass GA.

Was this patch authored or co-authored using generative AI tooling?

No.

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.

1 participant