Skip to content

Report a bulkdump backup's own snapshot in status - #14739

Open
saintstack wants to merge 1 commit into
apple:mainfrom
saintstack:dev/stack/bulkdump-status-own-snapshot
Open

saintstack wants to merge 1 commit into
apple:mainfrom
saintstack:dev/stack/bulkdump-status-own-snapshot

Conversation

@saintstack

Copy link
Copy Markdown
Contributor

Two things about a running bulkdump backup read wrongly in fdbbackup 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. It is now omitted for a bulkdump-only backup. BOTH mode keeps it, since its rangefile half is accurate. Anything reading CurrentSnapshot from a bulkdump backup's status will no longer find it; the job's state is in BulkDumpProgress.

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.sh starts a bulkdump backup with -z, requires CurrentSnapshot to be absent from status --json, then parks a bulkdump job that is not the backup's (bulkdump dump then bulkdump mode off) and requires status not to report its progress. With either change reverted the harness fails on that check; with both it passes.

Not changed: status still counts dump batches as "tasks", and describe still shows totalBytes=0 for bulkdump snapshots.

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.
@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-ide on Linux RHEL 9

  • Commit ID: f4c9822
  • Duration 0:20:30
  • 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-macos-m1 on macOS

  • Commit ID: f4c9822
  • Duration 0:26:30
  • 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-clang on Linux RHEL 9

  • Commit ID: f4c9822
  • Duration 0:48:34
  • 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 RHEL 9

  • Commit ID: f4c9822
  • Duration 0:49:38
  • 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-clang-arm on Linux RHEL 9

  • Commit ID: f4c9822
  • Duration 0:53:59
  • 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-macos on macOS

  • Commit ID: f4c9822
  • Duration 1:05:35
  • 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 RHEL 9

  • Commit ID: f4c9822
  • Duration 1:33: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)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

This branch has not been deployed

No deployments
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