diff options
Diffstat (limited to 'jstests/sharding/shard_identity_rollback.js')
-rw-r--r-- | jstests/sharding/shard_identity_rollback.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/sharding/shard_identity_rollback.js b/jstests/sharding/shard_identity_rollback.js index 9c5dd81da1b..912645b875d 100644 --- a/jstests/sharding/shard_identity_rollback.js +++ b/jstests/sharding/shard_identity_rollback.js @@ -85,8 +85,7 @@ jsTest.log("Waiting for original primary to rollback and shut down"); // Wait until the node shuts itself down during the rollback. We will hit the first assertion if // we rollback using 'recoverToStableTimestamp' and the second if using 'rollbackViaRefetch'. assert.soon(() => { - return (rawMongoProgramOutput().indexOf("Fatal Assertion 50712") !== -1 || - rawMongoProgramOutput().indexOf("Fatal Assertion 40498") !== -1); + return (rawMongoProgramOutput().search(/Fatal Assertion.*(40498|50712)/) !== -1); }); // Restart the original primary again. This time, the shardIdentity document should already be |