Skip to content
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

[C++] Reduce redeliverMessages when message listener is enabled #10726

Merged
merged 1 commit into from
May 28, 2021

Conversation

saosir
Copy link
Contributor

@saosir saosir commented May 27, 2021

Motivation

When consumer's message listener is enabled, application acknowledge processed message in message listener callback, but still tracks the message in internalListener, causes sending redundant redeliverMessages

Modifications

trackMessage before invoke message listener callback in internalListener

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • Does this pull request introduce a new feature? (no)

Copy link
Contributor

@BewareMyPower BewareMyPower left a comment

Choose a reason for hiding this comment

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

LGTM

@sijie sijie added this to the 2.8.0 milestone May 27, 2021
@codelipenghui codelipenghui merged commit ca40005 into apache:master May 28, 2021
@saosir saosir deleted the patch-6 branch May 28, 2021 11:07
yangl pushed a commit to yangl/pulsar that referenced this pull request May 29, 2021
…he#10726)

### Motivation

When consumer's message listener is enabled, application acknowledge processed message in message listener callback, but still tracks the message in `internalListener`,  causes sending redundant redeliverMessages

### Modifications

trackMessage before invoke message listener callback in `internalListener`
wangjialing218 pushed a commit to wangjialing218/pulsar that referenced this pull request May 31, 2021
…he#10726)

### Motivation

When consumer's message listener is enabled, application acknowledge processed message in message listener callback, but still tracks the message in `internalListener`,  causes sending redundant redeliverMessages

### Modifications

trackMessage before invoke message listener callback in `internalListener`
yangl pushed a commit to yangl/pulsar that referenced this pull request Jun 23, 2021
…he#10726)

### Motivation

When consumer's message listener is enabled, application acknowledge processed message in message listener callback, but still tracks the message in `internalListener`,  causes sending redundant redeliverMessages

### Modifications

trackMessage before invoke message listener callback in `internalListener`
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
…he#10726)

### Motivation

When consumer's message listener is enabled, application acknowledge processed message in message listener callback, but still tracks the message in `internalListener`,  causes sending redundant redeliverMessages

### Modifications

trackMessage before invoke message listener callback in `internalListener`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants