GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — [fix][ml] Preserve cursor properties when recovering from an unreadable cursor ledger by dao-jun · Pull Request #26512 · apache/pulsar Conversation
Member
Fixes #26483 Motivation
initialize(getRollbackPosition(info), Collections.emptyMap(), cursorProperties, callback);
These properties are load-bearing. Two in-tree consumers:
The sibling recovery branch already does the right thing: when ModificationsIn The decode is extracted into a small static Verifying this change
(Please pick either of the following options) This change is a trivial rework / code cleanup without any test coverage. (or) This change is already covered by existing tests, such as (please describe tests). (or) This change added tests and can be verified as follows: (example:)
Does this pull request potentially affect one of the following parts:If the box was checked, please highlight the changes
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
merlimat
approved these changes
lhotari
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Preserving snapshot properties addresses the marker loss, but restoring a deleted compacted-ledger pointer can leave
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
lhotari
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The snapshot waits now pin the intended position, and the missing-ledger fallback covers the stale-pointer recovery case. One concurrency issue remains in the new fallback: clearing the context can race the last-entry read and leave a client request unanswered.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. …ryOfCompactedLedger A read could pass the null check of compactedTopicContext while the recovered ledger was still opening, and the missing-ledger callback could then clear the field before thenCompose dereferenced it again, throwing a synchronous NullPointerException that bypassed the error handling of getLastMessageId / hasMessageAvailable requests. Capture the context into a local before checking it, so a read overlapping the reset completes through the returned future instead. Apply the same single-read pattern to getCompactedTopicContext, and cover the overlap with a delayed failed open.
lhotari
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
9 of 10 tasks
1 of 11 tasks
Radiancebobo
pushed a commit
to Radiancebobo/pulsar
that referenced
this pull request
4 of 5 tasks
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
…le cursor ledger (apache#26512) (cherry picked from commit fb40966)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page. AssigneesLabels
area/ML
cherry-picked/branch-4.0
cherry-picked/branch-4.2
ready-to-test
release/4.0.14
release/4.2.5
type/bug
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. [Bug] Cursor recovery from an unreadable cursor ledger durably discards cursor propertiesUh oh!
There was an error while loading. Please reload this page. 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. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |