[fix] [broker] Subscription stuck due to called Admin API analyzeSubscriptionBacklog#22019
Merged
dao-jun merged 12 commits intoFeb 18, 2024
Merged
Conversation
gaoran10
reviewed
Feb 4, 2024
Technoboy-
reviewed
Feb 4, 2024
Contributor
Author
|
A new update: The new Non-Durable cursor has not copied the ack state when creating, I will fix it tomorrow. New update(2024-02-05): fixed |
poorbarcode
requested review from
Technoboy- and
codelipenghui
and removed request for
codelipenghui
February 5, 2024 02:13
gaoran10
reviewed
Feb 5, 2024
gaoran10
approved these changes
Feb 5, 2024
Technoboy-
approved these changes
Feb 18, 2024
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22019 +/- ##
============================================
+ Coverage 72.90% 73.56% +0.66%
- Complexity 32464 32559 +95
============================================
Files 1850 1874 +24
Lines 138611 139253 +642
Branches 15201 15263 +62
============================================
+ Hits 101052 102444 +1392
+ Misses 29711 28888 -823
- Partials 7848 7921 +73
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
dao-jun
approved these changes
Feb 18, 2024
mukesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 1, 2024
…criptionBacklog (apache#22019) (cherry picked from commit 2045c5f)
mukesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 6, 2024
…criptionBacklog (apache#22019) (cherry picked from commit 2045c5f)
hanmz
pushed a commit
to hanmz/pulsar
that referenced
this pull request
Feb 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The Admin API
analyzeSubscriptionBacklogwill create anOpReadEntryand trigger a read, which leadsManagecursor.readPositionto move forward. It makes the subscription stuck(just like the consumer receives messages but does not acknowledge them).Modifications
subscription.cursorstartCursorPositionofnew NonDurableCursortomdPosition, make the code more clearerDocumentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x