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][meta] Preserve lock state and refresh reads during reacquisition by codelipenghui · Pull Request #27384 · apache/pulsar Conversation
Contributor
MotivationReacquiring an existing lock owned by the same metadata session can return successfully while the new local handle remains in Separately, an authoritative acquisition conflict can leave a cached self-owner value readable after the failed future is observed. Modifications
No ownership-cache caller or topic-admission changes are included. Verifying this changeTests-only execution on unpatched Apache master With the fix, 62 cases passed, with no failures/errors/skips and retries disabled:
Tests retain native in-memory metadata values and versions, while controlling notifications and asynchronous reads. ./gradlew :pulsar-metadata:test \ --tests ResourceLockImplTest \ --tests LockManagerReadCacheTest \ --tests LockManagerTest \ --tests CoordinationServiceImplTest \ -PtestRetryCount=0 -PtestMaxParallelForks=1 -PtestJavaVersion=21 ./gradlew quickCheck Does this pull request potentially affect one of the following parts:
Threading: recheck local state after the asynchronous native read and invalidate the cache before completing the failure future; existing executors and lock ordering are retained.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsValidate local lock lifecycle before adopting a same-session value and mark a fresh handle Valid. Invalidate only the conflicted path before exposing a typed acquisition failure, preserving unknown errors and unrelated cache entries. Seven baseline behavior failures reproduce on unpatched master; all62 related cases and quickCheck pass with retries disabled. Assisted-by: OpenAI Codex
codelipenghui
marked this pull request as ready for review
codelipenghui
requested review from
Denovo1998,
lhotari,
merlimat and
poorbarcode
poorbarcode
approved these changes
Uh oh!
There was an error while loading. Please reload this page. …acquire-state-20261105 Co-Authored-By: Claude Opus 5.5 <[email protected]> release() now deletes the lock only after the update or revalidation in flight completes (apache#27530), so a release can no longer finish while a revalidation read is pending. Drop that case from the delayed-read test, and cover releasing while revalidation re-acquires a stale lock. Co-Authored-By: Claude Opus 5.5 <[email protected]> Uh oh!
There was an error while loading. Please reload this page.
lhotari
pushed a commit
that referenced
this pull request
#27384) Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 49df762)
poorbarcode
pushed a commit
to poorbarcode/pulsar
that referenced
this pull request
apache#27384) Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 49df762)
poorbarcode
pushed a commit
to poorbarcode/pulsar
that referenced
this pull request
apache#27384) Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 49df762)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesLabels
cherry-picked/branch-4.0
cherry-picked/branch-4.2
cherry-picked/branch-5.0
release/4.0.15
release/4.2.6
release/5.0.2
type/bug
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh 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. |