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

add index build UUID to BackgroundOperationInProgress error messages

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.10, 6.0.0-rc11, 6.1.0-rc0
    • None
    • Fully Compatible
    • v6.0, v5.0
    • Execution Team 2022-06-13
    • 0

    Description

      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));
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: