-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding 2020-06-15, Sharding 2020-06-29
For example, a syntax error in the JavaScript being built up and handed to --eval would manifest the same way to this assert.throws().
It's better to have the parallel shell itself assert whether it should have succeeded or failed, and to always have the parent mongo shell process assert the child process exits with code zero.
Note that the moveChunkParallel() function already supports this with the `expectSuccess` parameter.