Repository navigation
Report a bulkdump backup's own snapshot in status - #14739
Open
saintstack wants to merge 1 commit into
Open
saintstack wants to merge 1 commit into
saintstack wants to merge 1 commit into
Conversation
Two things about a running bulkdump backup read wrongly in status. status --json carried the rangefile CurrentSnapshot block, which only the rangefile snapshot loop updates: for a bulkdump backup it stayed at the values from backup start, with an interval of 0 and progress of 100 after two snapshots had completed. Omit it for a bulkdump-only backup; BOTH keeps it. status, in text and JSON, reported the progress of whichever bulkdump job the cluster was running. The cluster runs one at a time, so that could be another backup's or an operator's. Report it only when the job's owner is this backup. s3_backup_bulkdump_bulkload.sh checks both: it requires CurrentSnapshot to be absent, then parks a bulkdump job that is not the backup's and requires status not to report it. With either change reverted the harness fails on that check; with both it passes.
Contributor
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos-m1 on macOS
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos on macOS
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
This branch has not been deployed
This file contains hidden or 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
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.
Two things about a running bulkdump backup read wrongly in
fdbbackup status.status --jsoncarried the rangefileCurrentSnapshotblock, which only the rangefile snapshot loop updates. For a bulkdump backup it stayed at the values from backup start, with an interval of 0 and progress of 100, after two snapshots had completed. It is now omitted for a bulkdump-only backup. BOTH mode keeps it, since its rangefile half is accurate. Anything readingCurrentSnapshotfrom a bulkdump backup's status will no longer find it; the job's state is inBulkDumpProgress.status, in text and JSON, reported the progress of whichever bulkdump job the cluster was running. The cluster runs one at a time, so that could be another backup's or an operator's. It now reports the job only when its owner is this backup, and otherwise shows the snapshot as pending.Test:
s3_backup_bulkdump_bulkload.shstarts a bulkdump backup with-z, requiresCurrentSnapshotto be absent fromstatus --json, then parks a bulkdump job that is not the backup's (bulkdump dumpthenbulkdump mode off) and requiresstatusnot to report its progress. With either change reverted the harness fails on that check; with both it passes.Not changed:
statusstill counts dump batches as "tasks", anddescribestill showstotalBytes=0for bulkdump snapshots.