Skip to content

[fix][flaky-test] Set the receiverQueueSize is 1 to precisely control the maxUnackedMessages. - #16671

Closed
shibd wants to merge 1 commit into
apache:masterfrom
shibd:fix_unmax_test
Closed

[fix][flaky-test] Set the receiverQueueSize is 1 to precisely control the maxUnackedMessages.#16671
shibd wants to merge 1 commit into
apache:masterfrom
shibd:fix_unmax_test

Conversation

@shibd

@shibd shibd commented Jul 19, 2022

Copy link
Copy Markdown
Member

Motivation

#16663

Currently, MaxUnackedMessagesOnConsumer do not precisely control.

If one Consumer MaxUnackedMessagesOnConsumer is 100, and current unackedMessages size is 95.

When 10 messages are read again, they may be sent to this consumer again. Because this check unackedMessages:95 < MaxUnackedMessagesOnConsumer:100 not blocked, and 105 unacked messages are eventually sent to the consumer.

Modifications

I don't think this is a problem, we don't need to make changes on the broker side.

We can modify the size of consumer.receiverQueue in the unit test to be 1, so as to ensure that each time the message is read from bk, it is 1 to make this test stable.

Documentation

Tell the user that the value is not precisely controlled.

  • doc
    (Your PR contains doc changes)

@codelipenghui

Copy link
Copy Markdown
Contributor

@shibd I think it related to this fix #16670

@github-actions github-actions Bot added the doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. label Jul 19, 2022
@shibd shibd closed this Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants