GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [improve][ml] RangeCache refactoring follow-up: use StampedLock instead of synchronized by lhotari · Pull Request #22818 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented Jun 2, 2024

Copy link
Copy Markdown
Member

Motivation

#22814 added synchronized usage to RangeCache to ensure consistency. Synchronized usage can be avoided by the use of StampedLock

Modifications

Replace synchronized with StampedLock

Documentation

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lhotari
[improve][ml] RangeCache refactoring follow-up: use StampedLock
111fc64
@lhotari lhotari added ready-to-test area/ML labels Jun 2, 2024
@lhotari
lhotari requested a review from merlimat June 2, 2024 11:37
@lhotari lhotari self-assigned this Jun 2, 2024
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jun 2, 2024
merlimat
merlimat approved these changes Jun 3, 2024
View reviewed changes
@lhotari
lhotari merged commit 208d8a5 into apache:master Jun 3, 2024
@lhotari lhotari added release/3.3.1 release/3.0.6 release/3.2.4 labels Jun 3, 2024
lhotari added a commit that referenced this pull request Jun 3, 2024
@lhotari
[improve][ml] RangeCache refactoring follow-up: use StampedLock inste…
d411468
…ad of synchronized (#22818)

(cherry picked from commit 208d8a5)
@lhotari lhotari added the cherry-picked/branch-3.3 label Jun 3, 2024
lhotari added a commit that referenced this pull request Jun 3, 2024
@lhotari
[improve][ml] RangeCache refactoring follow-up: use StampedLock inste…
62f674a
…ad of synchronized (#22818)

(cherry picked from commit 208d8a5)
lhotari added a commit that referenced this pull request Jun 3, 2024
@lhotari
[improve][ml] RangeCache refactoring follow-up: use StampedLock inste…
0906d4c
…ad of synchronized (#22818)

(cherry picked from commit 208d8a5)
@lhotari lhotari added cherry-picked/branch-3.0 cherry-picked/branch-3.2 labels Jun 3, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 7, 2024
@lhotari @nikhil-ctds
[improve][ml] RangeCache refactoring follow-up: use StampedLock inste…
0e14076
…ad of synchronized (apache#22818)

(cherry picked from commit 208d8a5)
(cherry picked from commit 62f674a)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 7, 2024
@lhotari @srinath-ctds
[improve][ml] RangeCache refactoring follow-up: use StampedLock inste…
12971bc
…ad of synchronized (apache#22818)

(cherry picked from commit 208d8a5)
(cherry picked from commit 62f674a)
@lhotari lhotari mentioned this pull request Jun 14, 2024
[Bug] Ledger can not recover with Digest Mismatch Error #22906
Closed
2 of 3 tasks
@lhotari lhotari added this to the 4.0.0 milestone Oct 14, 2024
@lhotari lhotari mentioned this pull request Jan 28, 2025
[fix][broker Fix bug in RangeCache where different instance of the key wouldn't ever match #23903
Merged
1 of 4 tasks
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
@lhotari hanmz
[improve][ml] RangeCache refactoring follow-up: use StampedLock inste…
2659a58
…ad of synchronized (apache#22818)
@lhotari lhotari mentioned this pull request May 31, 2025
[refactor][ml] Replace cache eviction algorithm with centralized removal queue and job #24363
Merged
1 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@merlimat merlimat merlimat approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lhotari lhotari

Labels

area/ML cherry-picked/branch-3.0 cherry-picked/branch-3.2 cherry-picked/branch-3.3 doc-not-needed Your PR changes do not impact docs ready-to-test release/3.0.6 release/3.2.4 release/3.3.1

Projects

None yet

Milestone

4.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@lhotari @merlimat
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.