jstests/noPassthrough/libs/index_build.js
/**
     * Wait for index build to start and return its op id.
     * Accepts optional filter that can be used to customize the db.currentOp() query.
     * The filter may be necessary in situations when the index build is delegated to a thread pool
     * managed by the IndexBuildsCoordinator and it is necessary to differentiate between the
     * client connection thread and the IndexBuildsCoordinator thread actively building the index.
     */
Wait for index build to start and return its op id.
Accepts optional filter that can be used to customize the db.currentOp() query.
The filter may be necessary in situations when the index build is delegated to a thread pool
managed by the IndexBuildsCoordinator and it is necessary to differentiate between the
client connection thread and the IndexBuildsCoordinator thread actively building the index.
Wait for index build to start and return its op id . Accepts optional filter that can be used to customize the db . currentOp () query . The filter may be necessary in situations when the index build is delegated to a thread pool managed by the IndexBuildsCoordinator and it is necessary to differentiate between the client connection thread and the IndexBuildsCoordinator thread actively building the index .
static waitForIndexBuildToStart(database, collectionName, indexName, filter) {
        let opId;
        assert.soon(function() {
            return (opId = IndexBuildTest.getIndexBuildOpId(
                        database, collectionName, indexName, filter)) !== -1;
        }, "Index build operation not found after starting via parallelShell");
        return opId;
    }
static waitForIndexBuildToStart ( database , collectionName , indexName , filter ) { let opId ; assert . soon ( function ( ) { return ( opId = IndexBuildTest . getIndexBuildOpId ( database , collectionName , indexName , filter ) ) !== - 1 ; } , "Index build operation not found after starting via parallelShell" ) ; return opId ; }
Wait for index build to start and return its op id.
Wait for index build to start and return its op id .