Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify global lock coarsening #4007

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

marcphilipp
Copy link
Member

Only acquire global read/write lock on the nodes immediately below the
engine descriptor and ignore other locks when a global read-write lock
is requested.

@marcphilipp marcphilipp self-assigned this Sep 18, 2024
@marcphilipp marcphilipp enabled auto-merge (squash) September 18, 2024 14:20
Only acquire global read/write lock on the nodes immediately below the
engine descriptor and ignore other locks when a global read-write lock
is requested.
@marcphilipp marcphilipp force-pushed the marc/simplify-global-lock-coarsening branch from 56df3ca to 7413dfa Compare September 18, 2024 14:28
@@ -52,7 +52,9 @@ private void walk(TestDescriptor globalLockDescriptor, TestDescriptor testDescri
NodeExecutionAdvisor advisor) {
Set<ExclusiveResource> exclusiveResources = getExclusiveResources(testDescriptor);
if (exclusiveResources.isEmpty()) {
advisor.useResourceLock(testDescriptor, globalReadLock);
if (globalLockDescriptor.equals(testDescriptor)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Maybe add a comment on what this means.

@marcphilipp marcphilipp merged commit 67a5a2f into main Sep 18, 2024
14 checks passed
@marcphilipp marcphilipp deleted the marc/simplify-global-lock-coarsening branch September 18, 2024 14:43
marcphilipp added a commit that referenced this pull request Sep 19, 2024
Only acquire global read/write lock on the nodes immediately below the
engine descriptor and ignore other locks when a global read-write lock
is requested.

(cherry picked from commit 67a5a2f)
@marcphilipp marcphilipp added this to the 5.11.1 milestone Sep 19, 2024
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.

2 participants