Skip to content

storage-mongodb: CreateBackup answered TableNotFoundException for a table that DescribeTable reported ACTIVE #892

Closed

Description

@LeeroyHannigan

Three tests in the mongodb-backup-store job create a table and wait until DescribeTable reports it ACTIVE (wait_for_active). Then they call CreateBackup. In two runs, CreateBackup answered TableNotFoundException:

botocore.errorfactory.TableNotFoundException: An error occurred (TableNotFoundException) when calling the CreateBackup operation: Table not found: restore-featp-e90e6e9ec9

Neither PR changes MongoDB code. Both failures came in pull request runs after #700 merged into main at 12:40 UTC, and main's own run on that commit passed. From 5 November 00:00 UTC to the merge, the job finished 24 times, and no run failed this way. The rerun of the second job passed.

The CreateBackup job that #700 added opens the table's snapshot (crates/engine/src/backup/job.rs:252). On MongoDB, open_table_snapshot_impl (crates/storage-mongodb/src/snapshot_engine.rs) starts a new snapshot session. It reads the tables document with ReadConcern::snapshot(). A missing document gives StorageError::TableNotFound, and a status other than ACTIVE gives StorageError::TableNotActive. create_backup_storage_err_to_dynamo (crates/engine/src/backup.rs) answers TableNotFoundException for both. DescribeTable reads outside that session.

The helper _create_backup in test_backup_restore_fidelity.py sends CreateBackup again after ContinuousBackupsUnavailableException or TableInUseException, and not after TableNotFoundException.

I have not reproduced the failure.

Activity

  1. added
    bug
    backend:mongodb
    on Nov 6, 2026
  2. self-assigned this
    on Nov 19, 2026
  3. hitesh96db commented on Nov 20, 2026

    @hitesh96db
    Contributor

    Fixed by #740 (76b9710, merged 7 November). The MongoDB snapshot open now retries while a local read of the tables document shows the table ACTIVE and the majority-committed snapshot does not yet, for at most 2 s (MAJORITY_CATCH_UP in crates/storage-mongodb/src/snapshot_engine.rs). an_open_waits_for_the_snapshot_to_show_a_table_a_local_read_shows_active covers it and runs in the mongodb-snapshot and mongodb-rust jobs. No failure with this signature has appeared in the failed MongoDB runs since 6 November.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backend:mongodbbugci:stability

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions