Skip to content

Conversation

@twmb
Copy link
Owner

@twmb twmb commented Nov 23, 2025

Meant to merge #1174.

Upon further analysis, the metadata update is called anyway: sharding uses fetchMappedMetadata, which issues a metadata request if it's been more than metadataMinAge. The downside of doing this only through fetchMappedMetadata is that that codepath only updates the map, not the client's internal metadata that it uses for producing and consuming. So, not only do we not reduce the number of metadata requests, we actually propagate the information less with the commit.

This reverts commit 88696a4.

…setForLeaderEpoch"

Meant to merge #1174.

Upon further analysis, the metadata update is called anyway: sharding
uses fetchMappedMetadata, which issues a metadata request if it's been
more than metadataMinAge. The downside of doing this only through
fetchMappedMetadata is that that codepath *only* updates the map, not
the client's internal metadata that it uses for producing and consuming.
So, not only do we not reduce the number of metadata requests, we
actually propagate the information less with the commit.

This reverts commit 88696a4.
@twmb twmb merged commit bfced92 into master Nov 23, 2025
16 checks passed
@twmb twmb deleted the meta-more branch November 23, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants