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

add index build UUID to BackgroundOperationInProgress error messages

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.10, 6.0.0-rc11, 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • v6.0, v5.0
    • Execution Team 2022-06-13
    • 0

      It would be helpful to include the conflicting index build UUID in thee error messages from the IndexBuildsCoordinator:

      void IndexBuildsCoordinator::assertNoIndexBuildInProgForCollection(
          const UUID& collectionUUID) const {
          uassert(ErrorCodes::BackgroundOperationInProgressForNamespace,
                  str::stream() << "cannot perform operation: an index build is currently running for "
                                   "collection with UUID: "
                                << collectionUUID,
                  !inProgForCollection(collectionUUID));
      }
      
      void IndexBuildsCoordinator::assertNoBgOpInProgForDb(StringData db) const {
          uassert(ErrorCodes::BackgroundOperationInProgressForDatabase,
                  str::stream() << "cannot perform operation: an index build is currently running for "
                                   "database "
                                << db,
                  !inProgForDb(db));
      }
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: