[SERVER-66520] add index build UUID to BackgroundOperationInProgress error messages Created: 17/May/22  Updated: 29/Oct/23  Resolved: 02/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.10, 6.0.0-rc11, 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.0
Sprint: Execution Team 2022-06-13
Participants:
Linked BF Score: 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));
}



 Comments   
Comment by Githook User [ 08/Jul/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-66520 add index build UUID to BackgroundOperationInProgress message

(cherry picked from commit d6a12bacdc9ebee0f4813d3f0a81252aa4f519bb)
Branch: v5.0
https://github.com/mongodb/mongo/commit/365bc0d0c03c6e4b6e6964a72b260b25c4e5b936

Comment by Githook User [ 21/Jun/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-66520 add index build UUID to BackgroundOperationInProgress message

(cherry picked from commit d6a12bacdc9ebee0f4813d3f0a81252aa4f519bb)
Branch: v6.0
https://github.com/mongodb/mongo/commit/7aaea4fc06a5f83aaa96bd9143e04c5794e0aa6a

Comment by Githook User [ 02/Jun/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-66520 add index build UUID to BackgroundOperationInProgress message
Branch: master
https://github.com/mongodb/mongo/commit/d6a12bacdc9ebee0f4813d3f0a81252aa4f519bb

Generated at Thu Feb 08 06:05:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.