Skip to content

IGNITE-19367 Remove MvPartitionStorage#pollForVacuum#2126

Merged
tkalkirill merged 8 commits intoapache:mainfrom
gridgain:ignite-19367
Jun 2, 2023
Merged

IGNITE-19367 Remove MvPartitionStorage#pollForVacuum#2126
tkalkirill merged 8 commits intoapache:mainfrom
gridgain:ignite-19367

Conversation

@tkalkirill
Copy link
Contributor

@Test
void testConcurrentExecuteBatchGc() {
assertThat(distributionZoneConfig.dataStorage().gcOnUpdateBatchSize().update(2), willSucceedFast());
assertThat(distributionZoneConfig.dataStorage().gcOnUpdateBatchSize().update(4), willSucceedFast());
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this change for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since tryLock is now used, there may be a situation where we did not delete all after trying to replay the race, so we should increase the size of the batch.

RowId rowId = gcEntry.getRowId();

assert binaryRow != null;
if (!locker.tryLock(rowId)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we stop if we are unable to lock a row? What should the user do with this information? I think this should be reflected in the javadoc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What to prevent possible deadlocks within a single runConsistently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this behavior from the description.

@tkalkirill tkalkirill merged commit 90746c7 into apache:main Jun 2, 2023
@tkalkirill tkalkirill deleted the ignite-19367 branch June 2, 2023 12:04
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