Skip to content

[fix][test] Fix flaky NegativeAcksTest.testNegativeAcksWithBackoff #24342

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hanmz
Copy link
Contributor

@hanmz hanmz commented May 23, 2025

Motivation

Clipboard_Screenshot_1747985208

This test sometimes blocks at consumer.receive() at line 261. The problem is introduced in this PR #23986. For batch sending scenarios, the current way of creating producers cannot guarantee that all messages are sent out in one batch. Therefore, for batch messages, executing consumer。negativeAcknowledge only once is not enough.

Modifications

By adding batchingMaxPublishDelay when creating the producer, all messages are guaranteed to be sent together.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs release/3.0.13 release/4.0.6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants