Skip to content

KAFKA-18591: Remove unused QuotaConfgHandler#18617

Merged
chia7712 merged 1 commit intoapache:trunkfrom
frankvicky:remove-unused-QuotaConfigHandler
Jan 20, 2025
Merged

KAFKA-18591: Remove unused QuotaConfgHandler#18617
chia7712 merged 1 commit intoapache:trunkfrom
frankvicky:remove-unused-QuotaConfigHandler

Conversation

@frankvicky
Copy link
Copy Markdown
Contributor

@frankvicky frankvicky commented Jan 19, 2025

JIRA: KAFKA-18591
This handler is for zk, we should remove it.

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 19, 2025
@frankvicky frankvicky changed the title MINOR: Remove unused QuotaConfgHandler KAFKA-18591: Remove unused QuotaConfgHandler Jan 19, 2025
Copy link
Copy Markdown
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.

The QuotaConfigHandler is no longer used after #18573

@chia7712
Copy link
Copy Markdown
Member

@frankvicky Could you please remove IpConfigHandler also? It is not used in production code after #18384

@frankvicky frankvicky force-pushed the remove-unused-QuotaConfigHandler branch from 8992bcf to 4adbbae Compare January 19, 2025 11:35
@frankvicky
Copy link
Copy Markdown
Contributor Author

Hi @chia7712
I have just updated the patch, PTAL

val props: Properties = new Properties()
props.put(QuotaConfig.IP_CONNECTION_RATE_OVERRIDE_CONFIG, "1")

assertThrows(classOf[IllegalArgumentException], () => configHandler.processConfigChanges("illegal-hostname", props))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ClientQuotaMetadataManager#handleIpQuota has similar logic and it seems we don't have unit test for ClientQuotaMetadataManager. Could you please add unit test for it?

@github-actions github-actions Bot removed the triage PRs from the community label Jan 20, 2025
@frankvicky frankvicky force-pushed the remove-unused-QuotaConfigHandler branch from 4adbbae to bf7877d Compare January 20, 2025 13:00
@github-actions github-actions Bot removed the small Small PRs label Jan 20, 2025
@chia7712 chia7712 merged commit 837fb1e into apache:trunk Jan 20, 2025
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
airlock-confluentinc Bot pushed a commit to confluentinc/kafka that referenced this pull request Jan 27, 2025
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
chia7712 pushed a commit that referenced this pull request Feb 6, 2025
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
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.

2 participants