You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "nileshkumar3 (via GitHub)" <gi...@apache.org> on 2026/05/21 03:39:36 UTC
[PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
nileshkumar3 opened a new pull request, #22338:
URL: https://github.com/apache/kafka/pull/22338
Ref: https://issues.apache.org/jira/browse/KAFKA-8073
## Causes
1. `produceUntilThrottled` sent tiny payloads, so on slow hosts the
1000 sends could stay under the 8000 B/s producer quota and never
trigger a throttle.
2. The broker `throttle-time` metric was cached once before the send
loop, so the lazily-registered sensor could be missed.
3. `verifyThrottleTimeRequestChannelMetric` asserted on the broker
`ThrottleTimeMs` histogram immediately, before the broker had
recorded the value.
## Changes
- Use a fixed 2 KB payload in `produceUntilThrottled` so the quota is
reliably exceeded.
- Re-read the broker throttle-time metric inside the send loop.
- Poll the RequestChannel `ThrottleTimeMs` via `TestUtils.waitUntilTrue`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-6307506902
This PR is being marked as stale since it has not had any activity in 90 days. If you
would like to keep this PR alive, please leave a comment asking for a review. If the PR has
merge conflicts, update it with the latest from the base branch.
<p>
If you are having difficulty finding a reviewer, please reach out on the
[mailing list](https://kafka.apache.org/contact).
<p>
If this PR is no longer valid or desired, please feel free to close it. If no activity
occurs in the next 30 days, it will be automatically closed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-4677216282
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-4954382923
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "nileshkumar3 (via GitHub)" <gi...@apache.org>.
nileshkumar3 commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-4947815954
@bbejeck Could you please review this when you get a chance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-4560848550
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "muralibasani (via GitHub)" <gi...@apache.org>.
muralibasani commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-4519794235
@nileshkumar3 can you pls add some loop(may be 50) run results executed locally ? this could help if the flakiness is gone.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "nileshkumar3 (via GitHub)" <gi...@apache.org>.
nileshkumar3 commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-4525217484
> @nileshkumar3 can you pls add some loop(may be 50) run results executed locally ? this could help if the flakiness is gone.
@muralibasani I ran the ClientIdQuotaTest.testThrottledProducerConsumer locally 50 times and all passed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "nileshkumar3 (via GitHub)" <gi...@apache.org>.
nileshkumar3 commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-4659499545
@muralibasani Could you please review this when you get a chance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-8073: Fix flaky BaseQuotaTest.testThrottledProducerConsumer [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22338:
URL: https://github.com/apache/kafka/pull/22338#issuecomment-6514082110
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org