[Server] Refactor MasterNodeManager NamespaceManagers Property to use ConcurrentDictionary for lock free lookups#3190
Merged
marcschier merged 4 commits intoSep 11, 2025
Conversation
…entDictionary for lock free lookups
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the MasterNodeManager to replace array-based namespace manager storage with a ConcurrentDictionary for improved thread-safe performance. The change aims to enable lock-free lookups while maintaining thread safety for modifications.
- Replaces
INodeManager[][]array structure withConcurrentDictionary<int, IReadOnlyList<INodeManager>> - Removes read-write lock usage from the critical lookup path in
GetManagerHandlemethod - Renames the lock field to be more specific about its purpose
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3190 +/- ##
==========================================
- Coverage 58.03% 57.58% -0.45%
==========================================
Files 357 355 -2
Lines 78116 78078 -38
Branches 13820 13814 -6
==========================================
- Hits 45335 44963 -372
- Misses 28607 28872 +265
- Partials 4174 4243 +69 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
romanett
marked this pull request as ready for review
September 8, 2025 04:15
marcschier
approved these changes
Sep 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Proposed changes
Types of changes
Checklist
Further comments