Skip to content

Fix consumer redelivery should not clear availablePermits - #170

Merged
rdhabalia merged 1 commit into
apache:masterfrom
rdhabalia:permits-stuck
Jan 20, 2017
Merged

rdhabalia merged 1 commit into
apache:masterfrom
rdhabalia:permits-stuck

Conversation

@rdhabalia

Copy link
Copy Markdown
Contributor

Motivation

For non-shared consumer: redeliverUnacknowledgedMessages() of consumer is clearing out the availablePermits which causes consumer to stop consuming messages from broker.

Modifications

consumer should increase availablePermits with number of expired messages from incomingMessages queue and sends more permits to broker if availablePermits reaches to defined threshold.

Result

Consumer will not stuck while receiving messages due to redeliverUnacknowledgedMessages().

@rdhabalia rdhabalia added the type/bug The PR fixed a bug or issue reported a bug label Jan 20, 2017
@rdhabalia rdhabalia added this to the 1.16 milestone Jan 20, 2017
@rdhabalia rdhabalia self-assigned this Jan 20, 2017

@merlimat merlimat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@rdhabalia
rdhabalia merged commit e61acc1 into apache:master Jan 20, 2017
@rdhabalia
rdhabalia deleted the permits-stuck branch June 21, 2017 18:55
sijie pushed a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
1) one with DefaultSerDe
2) one with custom SerDe
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
Signed-off-by: xiaolong.ran <[email protected]>

Master Issue: apache#169 

### Modifications

- Replace Apache Jenkins with Github Action CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants