Skip to content

DBRecoveryDurability errors with version vector - #11817

Merged
jzhou77 merged 1 commit into
apple:mainfrom
sbodagala:version_vector_durability_error
Dec 9, 2024
Merged

jzhou77 merged 1 commit into
apple:mainfrom
sbodagala:version_vector_durability_error

Conversation

@sbodagala

@sbodagala sbodagala commented Dec 6, 2024 •

Copy link
Copy Markdown
Contributor

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.

  • The PR has a description, explaining both the problem and the solution.
  • The description mentions which forms of testing were done and the testing seems reasonable.
  • Every function/class/actor that was touched is reasonably well documented.

For Release-Branches

If this PR is made against a release-branch, please also check the following:

  • This change/bugfix is a cherry-pick from the next younger branch (younger release-branch or main if this is the youngest branch)
  • There is a good reason why this PR needs to go into a release branch and this reason is documented (either in the description above or in a linked GitHub issue)

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.
@sbodagala
sbodagala requested review from dlambrig and jzhou77 December 6, 2024 00:33
@sbodagala

Copy link
Copy Markdown
Contributor Author

NOTE: These are the changes that I was referring to in PR #11284. Thanks!

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-ide on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 0:22:27
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@sbodagala sbodagala changed the title DBRecoveryDurability errors when version vector is enabled DBRecoveryDurability errors with version vector Dec 6, 2024
@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-arm on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 0:52:29
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 1:00:06
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x

  • Commit ID: 265b4bc
  • Duration 1:00:31
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 3:00:36
  • Result: ❌ FAILED
  • Error: Build has timed out.
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 3:00:41
  • Result: ❌ FAILED
  • Error: Build has timed out.
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@dlambrig

dlambrig commented Dec 6, 2024 •

Copy link
Copy Markdown
Contributor

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

The PR has a description, explaining both the problem and the solution.

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

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 3:00:52
  • Result: ❌ FAILED
  • Error: Build has timed out.
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 3:00:46
  • Result: ❌ FAILED
  • Error: Build has timed out.
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 1:10:45
  • Result: ❌ FAILED
  • Error: Error while executing command: if python3 -m joshua.joshua list --stopped | grep ${ENSEMBLE_ID} | grep -q 'pass=10[0-9][0-9][0-9]'; then echo PASS; else echo FAIL && exit 1; fi. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: 265b4bc
  • Duration 1:16:13
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@jzhou77
jzhou77 merged commit b9ae122 into apple:main Dec 9, 2024
@sbodagala

Copy link
Copy Markdown
Contributor Author

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

The PR has a description, explaining both the problem and the solution.

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

Done. Please let me know if that is clear enough, thanks!

@sbodagala
sbodagala deleted the version_vector_durability_error branch December 9, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants