Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-90893

listDatabases inconsistent with concurrent DDL operations

    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0
    • CAR Team 2024-06-10, CAR Team 2024-06-24, CAR Team 2024-07-08, CAR Team 2024-07-22, CAR Team 2024-08-05
    • 0

      Internal testing has hit a bug where an initial sync missed copying a collection because listDatabases failed to include the associated database. The collection and the database were created in the same transaction just before listDatabases for the initial sync, so there is a degree of concurrency involved here. We missed this collection because the collection creation also implicitly created the containing database. After committing the associated transaction but before updating the local catalog, the listDatabases command doesn't list the database.

      Note: We fixed a similar issue in SERVER-82221 for listCollection.

            Assignee:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: