-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Placement service lock optimisations and race condition fix (#7428)
* Calculates vnode hashes outside of lock Signed-off-by: Elena Kolevska <elena@kolevska.com> * Checks version again after reacquiring lock Signed-off-by: Elena Kolevska <elena@kolevska.com> * Removes unneeded check. Signed-off-by: Elena Kolevska <elena@kolevska.com> * Reduce the time we’re holding the lock on the Consistent hash Signed-off-by: Elena Kolevska <elena@kolevska.com> * Fixes possible race condition Signed-off-by: Elena Kolevska <elena@kolevska.com> * Prevents possible race condition Signed-off-by: Elena Kolevska <elena@kolevska.com> * Another possible race condition Signed-off-by: Elena Kolevska <elena@kolevska.com> * Removes leftover context metadata Signed-off-by: Elena Kolevska <elena@kolevska.com> * Small refactor Signed-off-by: Elena Kolevska <elena@kolevska.com> * Removes comment cause it’s not needed anymore, after bringing the lock inside of the method itself Signed-off-by: Elena Kolevska <elena@kolevska.com> * Revert Signed-off-by: Elena Kolevska <elena@kolevska.com> --------- Signed-off-by: Elena Kolevska <elena@kolevska.com> Co-authored-by: Artur Souza <asouza.pro@gmail.com>
- Loading branch information
1 parent
3eef69f
commit c53fc16
Showing
5 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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