Skip to content

IGNITE-18843 Fix the behavior of MvPartitionStorage#pollForVacuum when trying to delete the same row in parallel#1697

Merged
tkalkirill merged 14 commits intoapache:mainfrom
gridgain:ignite-18843
Feb 23, 2023
Merged

IGNITE-18843 Fix the behavior of MvPartitionStorage#pollForVacuum when trying to delete the same row in parallel#1697
tkalkirill merged 14 commits intoapache:mainfrom
gridgain:ignite-18843

Conversation

@tkalkirill
Copy link
Contributor


return reentrantLockLockHolder.decrementHolders() ? null : reentrantLockLockHolder;
});
} while (untilHoldByCurrentThread && lock.getHoldCount() > 0);
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't remove the holder from the map, is this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that I delete holder when LockHolder#decrementHolders returned true i.e. no one else holds the lock.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sorry, I made a mistake, I probably meant a thread-local set. You nullify it once somewhere later, right?

Copy link
Contributor Author

@tkalkirill tkalkirill Feb 23, 2023

Choose a reason for hiding this comment

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

I do it outside this private method.

}

@Test
void testSimpleReEnter() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I see no assertions in this test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a simple test that checks that there are no errors when using the api.

@tkalkirill tkalkirill merged commit 24de978 into apache:main Feb 23, 2023
@tkalkirill tkalkirill deleted the ignite-18843 branch February 23, 2023 07:40
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Mar 18, 2023
lowka pushed a commit to gridgain/apache-ignite-3 that referenced this pull request Apr 19, 2023
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