-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
-
Repl 2021-10-04
SERVER-58200 modified startParallelShell to ensure that whenever a parallel shell is started, the cleanup function returned by startParallelShell must be called in that shell, or the whole test will fail.
As a part of this ticket, we modified the jstests/replsets/rollback_waits_for_bgindex_completion.js to run the function, which checks the exit code of the parallel shell, and throws an error if it's not 0.
It began to fail with the following assertion:
[js_test:rollback_waits_for_bgindex_completion] uncaught exception: Error: [0] != [252] are not equal : encountered an error in the parallel shell : [js_test:rollback_waits_for_bgindex_completion] doassert@src/mongo/shell/assert.js:20:14 [js_test:rollback_waits_for_bgindex_completion] assert.eq@src/mongo/shell/assert.js:179:9 [js_test:rollback_waits_for_bgindex_completion] startParallelShell/<@src/mongo/shell/servers_misc.js:182:13 [js_test:rollback_waits_for_bgindex_completion] @jstests/replsets/rollback_waits_for_bgindex_completion.js:93:1 [js_test:rollback_waits_for_bgindex_completion] @jstests/replsets/rollback_waits_for_bgindex_completion.js:11:2 [js_test:rollback_waits_for_bgindex_completion] failed to load: jstests/replsets/rollback_waits_for_bgindex_completion.js [js_test:rollback_waits_for_bgindex_completion] exiting with code -3
The parallel shell is launched in jstests/replsets/rollback_waits_for_bgindex_completion.js:93. (Off commit e502f2d3965ac4147d303e956a582b7c4eef8232) Here's the whole stack trace of when the parallel shell is launched:
[js_test:rollback_waits_for_bgindex_completion] startParallelShell/<@src/mongo/shell/servers_misc.js:182:13 [js_test:rollback_waits_for_bgindex_completion] @jstests/replsets/rollback_waits_for_bgindex_completion.js:93:1 [js_test:rollback_waits_for_bgindex_completion] @jstests/replsets/rollback_waits_for_bgindex_completion.js:11:2 [js_test:rollback_waits_for_bgindex_completion] failed to load: jstests/replsets/rollback_waits_for_bgindex_completion.js
STM has set the checkExitSuccess flag to false on the cleanup function of the parallel shell to prevent the error from causing these tests to go red and to preserve existing semantics. We'd like someone to investigate if the parallel shell failure is expected (in which case checkExitSuccess should remain false), or if it's unexpected and the test needs to be modified.
- has to be done after
-
SERVER-58200 Asserting clauses do not cause a jstest to fail when it is run through startParallelShell()
- Closed
- is related to
-
SERVER-60428 Investigate effectiveness of test jstests/replsets/rollback_waits_for_bgindex_completion.js
- Closed
- related to
-
SERVER-59688 Investigate failing parallel shell in jstests/noPassthrough/index_build_restart_standalone.js
- Closed