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

storage: fix send/recv unprotected when 2 at once #441

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

Gerold103
Copy link
Collaborator

The PR is for #434, and the first commit is cherry-picked from #439 to speed up the tests.

It is taking too long time (> 30 seconds). The commit moves it to
a separate file so as the more generic test storage_1_1 wouldn't
be too slow. The latter is going to get new test cases and it is
easier to debug them when the info-test is in another place.

Needed for #429

NO_DOC=refactoring
@Gerold103 Gerold103 self-assigned this Oct 30, 2023
@Gerold103 Gerold103 force-pushed the gerold103/gh-434-transfering_buckets-bug branch from 20589b0 to b689df2 Compare October 30, 2023 22:34
Copy link
Contributor

@Serpentian Serpentian left a comment

Choose a reason for hiding this comment

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

Thank you for the patch. Left some comments

test/storage-luatest/storage_1_1_test.lua Show resolved Hide resolved
test/storage-luatest/storage_1_1_test.lua Show resolved Hide resolved
vshard/storage/init.lua Outdated Show resolved Hide resolved
test/storage-luatest/storage_1_1_test.lua Show resolved Hide resolved
If more than one bucket_send/recv would try to start on the same
bucket on the same storage, it could lead to the bucket recovery
or GC when there would be no need for it. Data couldn't be lost,
and it wouldn't occur during automatic rebalancing, but manual
usage of those functions could fail when it shouldn't have.

Closes #434

NO_DOC=bugfix
@Gerold103 Gerold103 force-pushed the gerold103/gh-434-transfering_buckets-bug branch from b689df2 to 4168ac7 Compare October 31, 2023 21:21
Copy link
Contributor

@Serpentian Serpentian left a comment

Choose a reason for hiding this comment

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

Thank you for the patch! Applied it on top of auto-master patchset, tests, added in this PR, are 100% stable now.

P.S. I'll add review to the auto-master by the end of a week

@Gerold103 Gerold103 merged commit 2e3c583 into master Nov 3, 2023
12 checks passed
@Gerold103 Gerold103 deleted the gerold103/gh-434-transfering_buckets-bug branch November 3, 2023 21:34
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