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-18638 fix flasky testThrottledProducerConsumer.testThrottledProducerConsumer #18689

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

JimmyWang6
Copy link

@JimmyWang6 JimmyWang6 commented Jan 24, 2025

Decrease the value for defaultProducerQuota from 8000 to 6000 to make sure that producing 1000 message will get throttled in testThrottledProducerConsumer.

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 tests Test fixes (including flaky tests) small Small PRs labels Jan 24, 2025
Copy link
Contributor

@m1a2st m1a2st left a comment

Choose a reason for hiding this comment

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

Hello @JimmyWang6, Thanks for this PR.

@@ -70,7 +70,7 @@ abstract class BaseQuotaTest extends IntegrationTestHarness {
this.consumerConfig.setProperty(ConsumerConfig.FETCH_MAX_WAIT_MS_CONFIG, "0")

// Low enough quota that a producer sending a small payload in a tight loop should get throttled
val defaultProducerQuota: Long = 8000
val defaultProducerQuota: Long = 6000
Copy link
Contributor

Choose a reason for hiding this comment

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

How can we be confident that 6000 is a stable limit? Would you be able to share the testing results from your local environment that validate this?

@github-actions github-actions bot removed the triage PRs from the community label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved core Kafka Broker small Small PRs tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants