Skip to content

Flaky: test_a_tampered_data_file_fails_the_restore_before_any_item fails when it sees the target DELETING #993

Closed

Description

@LeeroyHannigan

test_a_tampered_data_file_fails_the_restore_before_any_item in tests/test_backup_job.py fails some CI runs on PostgreSQL:

AssertionError: tamper-ffbdb1c1-r is DELETING, it was never writable

Run that failed:

#985 moved this cell onto _restore_fails. While it waits for the target to go, _wait_table_gone fails on any status other than CREATING. On PostgreSQL the removal of a failed restore's target passes through DELETING. abort_restore (crates/storage-postgres/src/backup_engine.rs line 957) sets the target to DELETING. The removal then drops the data and deletes the row where its status is DELETING (line 991). A DescribeTable in that window answers DELETING. The helper polls every 0.2 s, so the test fails only when a poll lands in the window.

The assertion checks that the target never became ACTIVE and writable. A DELETING table is not writable either.

Proposed fix: accept CREATING and DELETING in _wait_table_gone, and keep the failure for any other status.

Activity

  1. added a commit that references this issue on Nov 23, 2026
    b793835
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions