Skip to content

HDDS-14592. Reduce lock contention in AbstractLayoutVersionManager#9840

Open
Russole wants to merge 5 commits intoapache:masterfrom
Russole:HDDS-14592
Open

HDDS-14592. Reduce lock contention in AbstractLayoutVersionManager#9840
Russole wants to merge 5 commits intoapache:masterfrom
Russole:HDDS-14592

Conversation

@Russole
Copy link
Contributor

@Russole Russole commented Feb 27, 2026

What changes were proposed in this pull request?

  • Remove explicit locking from AbstractLayoutVersionManager.
  • Introduce immutable State with AtomicReference for lock-free state transitions.
  • Convert feature maps read-only after initialization to prevent accidental changes and allow safe concurrent reads.
  • Improve initialization validation and error handling (MLV > SLV case).
  • Remove locking from finalized() and retain idempotent semantics.
  • Fix OM initialization error handling to avoid accessing LayoutVersionManager state before it is initialized (MLV > SLV case).

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14592

How was this patch tested?

@adoroszlai adoroszlai changed the title HDDS-14592. Reduce lock contension in AbstractLayoutVersionManager HDDS-14592. Reduce lock contention in AbstractLayoutVersionManager Feb 27, 2026
@Russole
Copy link
Contributor Author

Russole commented Feb 28, 2026

Hi @adoroszlai, @yandrey, @jojochuang,
Could you please take a look at this PR when you have time?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant