-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fixing SkewedReadWrite to load its metadata in a transactionally consistent way #9274
Merged
Conversation
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
Doxense CI Report for Windows 10
|
Result of foundationdb-pr-clang-ide on Linux CentOS 7
|
Result of foundationdb-pr-macos-m1 on macOS Monterey 12.x
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Monterey 12.x
|
sfc-gh-xwang
approved these changes
Jan 31, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Thanks
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
sfc-gh-nwijetunga
added a commit
to sfc-gh-nwijetunga/foundationdb
that referenced
this pull request
Feb 1, 2023
* main: (22 commits) move feed cleanup check to after data is guaranteed to be available for granule (apple#9283) remove test timeout Reduce logging level for verbose events Added documentation for consistencyscan CLI command. Fix audit_storage issues (apple#9265) Update bindings/bindingtester/spec/tenantTester.md Update bindings/bindingtester/spec/tenantTester.md update bindingtester spec Fixing SkewedReadWrite to load its metadata in a transactionally consistent way (apple#9274) push string onto stack when active tenant is set Add comments on why custom encoding is needed patch to fix some existing bindingtester issues add arg and return type to the c_api for impl.py Fix includes Add from_7.0.0_until_7.2.0 for UpgradeAndBackupRestore tests Change UpgradeAndBackupRestore to from_7.2.4 Add a new toml option to disable failure injection workload Change SubmitBackup to only reboot in Attrition add method to return idfuture add to java and python stack tester ...
sfc-gh-nwijetunga
added a commit
to sfc-gh-nwijetunga/foundationdb
that referenced
this pull request
Feb 2, 2023
* main: (23 commits) Handle EKP Tenant Not Found Errors (apple#9261) move feed cleanup check to after data is guaranteed to be available for granule (apple#9283) remove test timeout Reduce logging level for verbose events Added documentation for consistencyscan CLI command. Fix audit_storage issues (apple#9265) Update bindings/bindingtester/spec/tenantTester.md Update bindings/bindingtester/spec/tenantTester.md update bindingtester spec Fixing SkewedReadWrite to load its metadata in a transactionally consistent way (apple#9274) push string onto stack when active tenant is set Add comments on why custom encoding is needed patch to fix some existing bindingtester issues add arg and return type to the c_api for impl.py Fix includes Add from_7.0.0_until_7.2.0 for UpgradeAndBackupRestore tests Change UpgradeAndBackupRestore to from_7.2.4 Add a new toml option to disable failure injection workload Change SubmitBackup to only reboot in Attrition add method to return idfuture ...
jzhou77
pushed a commit
to jzhou77/foundationdb
that referenced
this pull request
Feb 15, 2023
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The servers and key mapping weren't being loaded in a way that was guaranteed to be transactionally consistent.
This lead to a concrete problem where "range" was loaded with version A, "serverList" was loaded with version C, and a server was removed by DD from the cluster at version B, where A < B < C.
This resulted in serverShards having a mapping to a server not in serverInterfaces, which caused serverInterfaces.at in setHotServers to segfault.
This fixes the problem by loading both as part of the same transaction with the same read version, guaranteeing they are transactionally consistent.
Passes 1k of this test in correctness
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branch
ormain
if this is the youngest branch)