Skip to content

Conversation

yx9o
Copy link
Contributor

@yx9o yx9o commented Sep 10, 2025

Hi community, currently, the client sets
org.apache.kafka.clients.NetworkClient.DefaultMetadataUpdater#inProgress
when retrieving metadata. In the event of a successful or failed
response, inProgress is set to null. image

The problem we encountered was: An exception was thrown while
processing the MetadataResponse, causing inProgress to not be updated.
Metadata requests could not be initiated again, and metadata remained
unupdated. image

Why did the update fail? maybeUpdate(long now) always returns a
default timeout, meaning no new MetadataRequest would be sent until the
previous one was complete.

@github-actions github-actions bot added triage PRs from the community clients small Small PRs labels Sep 10, 2025
@yx9o
Copy link
Contributor Author

yx9o commented Sep 12, 2025

Hi @mimaison , can you help me review it? Thank you

@kirktrue
Copy link
Contributor

An exception was thrown while processing the MetadataResponse

Out of curiosity, what was the original error that was thrown in the processing of handleFailedRequest() and/or handleSuccessfulResponse() that caused nullifying inProgress to be skipped?

@yx9o
Copy link
Contributor Author

yx9o commented Sep 16, 2025

An exception was thrown while processing the MetadataResponse

Out of curiosity, what was the original error that was thrown in the processing of handleFailedRequest() and/or handleSuccessfulResponse() that caused nullifying inProgress to be skipped?

image Thank you for your reply. Let me explain the situation we encountered: We modified the metadata return. When obtaining full metadata, metadata for multiple clusters was returned. One erroneous return resulted in two duplicate nodeIds.

Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clients needs-attention small Small PRs triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants