Skip to content

Conversation

see-quick
Copy link
Contributor

@see-quick see-quick commented Oct 6, 2025

This PR moves yet another publisher to the metadata module. Fixes [1].

[1] - https://issues.apache.org/jira/browse/KAFKA-18710

@github-actions github-actions bot added triage PRs from the community core Kafka Broker kraft labels Oct 6, 2025
@see-quick
Copy link
Contributor Author

see-quick commented Oct 8, 2025

I think that shouldAddAndRemoveThreadsMultipleTimes test case, which is failing, is not related to this PR.

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@see-quick thanks for this patch

/**
* Interface for updating client quotas based on metadata changes.
*/
public interface ClientQuotaUpdater {
Copy link
Member

Choose a reason for hiding this comment

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

Could it be replaced by Consumer<ClientQuotasDelta>?


@Override
public void onMetadataUpdate(MetadataDelta delta, MetadataImage newImage, LoaderManifest manifest) {
String deltaName = "MetadataDelta up to " + newImage.highestOffsetAndEpoch().offset();
Copy link
Member

Choose a reason for hiding this comment

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

would you mind initializing it lazily?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved core Kafka Broker kraft triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants