SERVER-120732: replSetInitiate should error (#51826)
GitOrigin-RevId: 28032828d95915808dd95accc55afb0da2c3ef78
This commit is contained in:
parent
7afff36c3f
commit
e66373f938
@ -1812,12 +1812,11 @@ export class ReplSetTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs replSetInitiate on the first node of the replica set.
|
||||
*
|
||||
* TODO (SERVER-109841): Replsetinitiate is currently a no-op command for disagg. Determine the
|
||||
* next steps for this function if additional functionality is to be incorporated.
|
||||
* Blocks until the set is initialized with a primary.
|
||||
* TODO SERVER-124472: Determine if initiateForDisagg needs additional functionality to
|
||||
* match ASC ReplSetTest.initiate.
|
||||
*/
|
||||
initiateForDisagg(cfg, initCmd) {
|
||||
initiateForDisagg() {
|
||||
const startTime = new Date(); // Measure the execution time of this function.
|
||||
|
||||
// Blocks until there is a primary. We use a faster retry interval here since we expect the
|
||||
|
||||
@ -13,7 +13,8 @@ rst.initiate();
|
||||
|
||||
// Background query analysis operations such as index creation may throw off
|
||||
// the checks between the replSetGetStatus result and the last oplog entry.
|
||||
// TODO SERVER-109841: This should be deleted if we move this into ReplSetTest.
|
||||
// TODO SERVER-124430: This should be deleted if we move this into
|
||||
// ReplSetTest initiateForDisagg.
|
||||
rst.waitForQueryAnalysisWriterSetup();
|
||||
|
||||
const db = rst.getPrimary().getDB("oplog_scan_optimizations");
|
||||
|
||||
@ -23,7 +23,8 @@ rst.initiate();
|
||||
|
||||
// Background query analysis operations such as index creation may throw off
|
||||
// the checks between the replSetGetStatus result and the last oplog entry.
|
||||
// TODO SERVER-109841: This should be deleted if we move this into ReplSetTest.
|
||||
// TODO SERVER-124430: This should be deleted if we move this into
|
||||
// ReplSetTest initiateForDisagg.
|
||||
rst.waitForQueryAnalysisWriterSetup();
|
||||
|
||||
const db = rst.getPrimary().getDB(jsTest.name());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user