Skip to content

[SPARK-53892][SS] Use DescribeTopicsResult.allTopicNames instead of the deprecated all API#52597

Closed
dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
dongjoon-hyun:DescribeTopicsResult
Closed

[SPARK-53892][SS] Use DescribeTopicsResult.allTopicNames instead of the deprecated all API#52597
dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
dongjoon-hyun:DescribeTopicsResult

Conversation

@dongjoon-hyun
Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun commented Oct 13, 2025

What changes were proposed in this pull request?

This PR aims to use DescribeTopicsResult.allTopicNames API instead of the deprecated all API.

Why are the changes needed?

all API was deprecated at Apache Kafka 3.1.0 and removed at 4.0.0.

The all() method was removed from the org.apache.kafka.clients.admin.DescribeTopicsResult. Please use allTopicNames() instead.

Does this PR introduce any user-facing change?

No behavior change.

How was this patch tested?

Pass the CIs.

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

No.

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-XXX] Remove deprecated API usages of DescribeTopicsResult [SPARK-53892][SS] Remove deprecated API usages of DescribeTopicsResult Oct 13, 2025
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-53892][SS] Remove deprecated API usages of DescribeTopicsResult [SPARK-53892][SS] Remove deprecated API usages of DescribeTopicsResult Oct 13, 2025
KAFKA-10774 Support Describe topic using topic IDs
KAFKA-18289 Remove deprecated methods of DescribeTopicsResult
@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review October 13, 2025 21:43
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-53892][SS] Remove deprecated API usages of DescribeTopicsResult [SPARK-53892][SS] Use DescribeTopicsResult.allTopicNames instead of the deprecated all API Oct 13, 2025
@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Thank you, @HyukjinKwon . Merged to master.

@dongjoon-hyun dongjoon-hyun deleted the DescribeTopicsResult branch October 14, 2025 00:55
huangxiaopingRD pushed a commit to huangxiaopingRD/spark that referenced this pull request Nov 25, 2025
… the deprecated `all` API

### What changes were proposed in this pull request?

This PR aims to use `DescribeTopicsResult.allTopicNames` API instead of the deprecated `all` API.

### Why are the changes needed?

`all` API was deprecated at Apache Kafka 3.1.0 and removed at 4.0.0.
- apache/kafka#9769
- apache/kafka#18255

> The <code>all()</code> method was removed from the <code>org.apache.kafka.clients.admin.DescribeTopicsResult</code>. Please use <code>allTopicNames()</code> instead.

### Does this PR introduce _any_ user-facing change?

No behavior change.

### How was this patch tested?

Pass the CIs.

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

No.

Closes apache#52597 from dongjoon-hyun/DescribeTopicsResult.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
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.

2 participants