Repository navigation
DBRecoveryDurability errors with version vector - #11817
Conversation
version only after receiving a commit version reply from the sequencer. Advancing the min committed version prior to that point may result in invalid DBRecoveryDurability errors (if a recovery happens after the advancement) in simulation tests.
|
NOTE: These are the changes that I was referring to in PR #11284. Thanks! |
Result of foundationdb-pr-clang-ide on Linux CentOS 7
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
please add a note to document why advancing the min committed version prior to receiving a commit version reply from the sequencer may lead to invalid DBRecoveryDurability errors (in unicast) , thanks |
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Done. Please let me know if that is clear enough, thanks! |
Proxies currently advance min committed version right after receiving a reply from log servers. This is correct when version vector is disabled, because the reply from all log servers guarantees that all log servers have made the changes of this version (and the changes of all versions prior to this version) durable. But this is not correct when version vector (unicast) is enabled because a reply for a (unicast) version doesn't guarantee that all versions prior to this version have been made durable and so any recovery done at that point may not recover that version (depending on whether the previous versions have been made durable or not) and that could result in DBRecoveryDurability errors in simulation tests. Resolve this issue by advancing the min committed version after receiving a commit reply from the sequencer (at which point it is guaranteed that all versions prior to this version have been made durable) when version vector (unicast) is enabled.
Testing:
Joshua id: 20241206-005617-sre-2b47810578fa7e18 (started).
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-branchormainif this is the youngest branch)