Skip to content

[bulk][split-218 #179] load: require PITR enabled (safety gate) (bu-9yy) - #43

Closed
relentlesscol wants to merge 1 commit into
mainfrom
polecat/bu-9yy
Closed

[bulk][split-218 #179] load: require PITR enabled (safety gate) (bu-9yy)#43
relentlesscol wants to merge 1 commit into
mainfrom
polecat/bu-9yy

Conversation

@relentlesscol

Copy link
Copy Markdown
Owner

Summary

Issue awslabs#179. Refuse to run load if the target table does not have Point-in-Time Recovery enabled — safety gate against accidental data loss.

TDD REQUIRED: (1) Write a failing unit test that asserts load aborts with clear error when PITR is off. (2) Implement the check. (3) make test must pass. (4) This changes command behavior (new exit-with-error path) — add e2e test. Single-issue PR.

Files: client/src/runner.py. Tests: tests/client/ + tests/e2e/commands/.

Implementation notes

Implemented: load now requires PITR enabled (pitr_enabled=True in validate_tables call). Unit test + e2e test added. All 1325 tests pass.

Refinery handoff

  • Issue: bu-9yy (task, P2)
  • Source branch: polecat/bu-9yy
  • Target: main
  • Rebased on main via Gastown Refinery.

Load now calls validate_tables with pitr_enabled=True, refusing to run
against tables without Point-in-Time Recovery — same safety gate already
protecting delete.

Adds unit test (TDD) and e2e test for the new exit-with-error path.

Fixes awslabs#179
@relentlesscol

Copy link
Copy Markdown
Owner Author

Promoted to upstream: awslabs#224

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.

1 participant