Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-18633: Remove errorUnavailableEndpoints from handleTopicMetadataRequest #18692

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

Yunyung
Copy link
Contributor

@Yunyung Yunyung commented Jan 24, 2025

Description

Remove errorUnavailableEndpoints, this is no longer required as the min version of MetadataRequest is v4 so the flag is always false now.

Jira: https://issues.apache.org/jira/browse/KAFKA-18633

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@github-actions github-actions bot added triage PRs from the community core Kafka Broker small Small PRs labels Jan 24, 2025
@chia7712 chia7712 added ci-approved and removed small Small PRs labels Jan 24, 2025
@github-actions github-actions bot added small Small PRs and removed triage PRs from the community labels Jan 24, 2025
@@ -60,42 +60,25 @@ class KRaftMetadataCache(

// This method is the main hotspot when it comes to the performance of metadata requests,
// we should be careful about adding additional logic here.
// filterUnavailableEndpoints exists to support v0 MetadataResponses
private def maybeFilterAliveReplicas(image: MetadataImage,
Copy link
Member

Choose a reason for hiding this comment

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

This method has one-line only, so maybe we can inline this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds fair:)
Done.

@github-actions github-actions bot removed the small Small PRs label Jan 25, 2025
@ijuma
Copy link
Member

ijuma commented Jan 27, 2025

Let's please not merge this for now. We're considering the possibility of restoring the older metadata versions since that change breaks all released versions of kafka-python.

@chia7712
Copy link
Member

Let's please not merge this for now. We're considering the possibility of restoring the older metadata versions since that change breaks all released versions of kafka-python.

yes, let me add link to the jira (https://issues.apache.org/jira/browse/KAFKA-18648)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants