Skip to content

Conversation

@shibd
Copy link
Member

@shibd shibd commented Jul 19, 2022

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
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