Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[fix] [ml] Mark delete stuck due to switching cursor ledger fails #22662

Merged
merged 1 commit into from
May 7, 2024

Conversation

poorbarcode
Copy link
Contributor

Motivation

Background

  • Cursor switches cursor ledgers if full, and there is a condition: no in-progress BK writing.
  • The variable inProgressMarkDeletePersistPosition is used to trace whether there is an in-progress BK writing, it increases when starting a BK writing, and decreases when the writing is completed.

Issue
#20935 forgot to decrease the variable inProgressMarkDeletePersistPosition when writing fails, leading to the cursor ledger switching to stuck, because the cursor assumes there is always an in-progress BK writing.

Modifications

Fix the bug.

Documentation

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

Matching PR in forked repository

PR in forked repository: x

@codelipenghui codelipenghui added this to the 3.3.0 milestone May 7, 2024
@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 85.71429% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 72.69%. Comparing base (bbc6224) to head (4b2b7de).
Report is 227 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #22662      +/-   ##
============================================
- Coverage     73.57%   72.69%   -0.88%     
+ Complexity    32624    32546      -78     
============================================
  Files          1877     1887      +10     
  Lines        139502   141023    +1521     
  Branches      15299    15482     +183     
============================================
- Hits         102638   102521     -117     
- Misses        28908    30639    +1731     
+ Partials       7956     7863      -93     
Flag Coverage Δ
inttests 27.09% <0.00%> (+2.51%) ⬆️
systests 24.66% <0.00%> (+0.33%) ⬆️
unittests 71.47% <85.71%> (-1.38%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...che/bookkeeper/mledger/impl/ManagedCursorImpl.java 79.37% <85.71%> (+0.07%) ⬆️

... and 338 files with indirect coverage changes

@poorbarcode poorbarcode merged commit a7e1fcd into apache:master May 7, 2024
55 of 56 checks passed
poorbarcode added a commit that referenced this pull request May 7, 2024
poorbarcode added a commit that referenced this pull request May 7, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request May 13, 2024
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants