Skip to content

Conversation

@hrzzzz
Copy link
Contributor

@hrzzzz hrzzzz commented Sep 14, 2023

Motivation

#19581 filter messages in dispatcher. However, it filters out duplicate messages after calculating totalMessages, which results in occupying permits even though the messages were not sent to the consumer. This could potentially cause the consumer to be stuck and unable to consume.

Modifications

Calculate totalMessages after filtering out the messages.

Verifying this change

  • Make sure that the change passes the CI checks.

  • Added test in org.apache.pulsar.client.impl.TransactionEndToEndTest#testMsgsInPendingAckStateWouldNotGetTheConsumerStuck

Documentation

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

Matching PR in forked repository

PR in forked repository: hrzzzz#2

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 14, 2023
@hrzzzz hrzzzz closed this Sep 14, 2023
@hrzzzz hrzzzz reopened this Sep 14, 2023
@hrzzzz
Copy link
Contributor Author

hrzzzz commented Sep 18, 2023

@congbobo184 @aloyszhang PTAL

Copy link
Contributor

@congbobo184 congbobo184 left a comment

Choose a reason for hiding this comment

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

Good catch!

@hrzzzz
Copy link
Contributor Author

hrzzzz commented Sep 25, 2023

/pulsarbot rerun-failure-checks

@Technoboy- Technoboy- modified the milestones: 3.1.0, 3.2.0 Sep 26, 2023
@Technoboy- Technoboy- merged commit 0b32b17 into apache:master Sep 27, 2023
Technoboy- pushed a commit that referenced this pull request Sep 27, 2023
Technoboy- pushed a commit that referenced this pull request Sep 27, 2023
liangyuanpeng pushed a commit to liangyuanpeng/pulsar that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants