summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2022-01-14 17:21:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-14 18:13:55 +0000
commitc95486cacb674ccacda5e8123c320d45bbcaa54c (patch)
tree078de80700806e273843f2eefe5756ee352ad598
parent9be40f5388022d58326339092f6bb83466d8073e (diff)
downloadmongo-c95486cacb674ccacda5e8123c320d45bbcaa54c.tar.gz
SERVER-62171 Add logs to output of runConcurrentMoveChunk in sharding_statistics_server_status.js
-rw-r--r--jstests/sharding/sharding_statistics_server_status.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/sharding/sharding_statistics_server_status.js b/jstests/sharding/sharding_statistics_server_status.js
index eade4143508..67e22039403 100644
--- a/jstests/sharding/sharding_statistics_server_status.js
+++ b/jstests/sharding/sharding_statistics_server_status.js
@@ -83,7 +83,10 @@ function runConcurrentMoveChunk(host, ns, toShard) {
result.code == ErrorCodes.ConflictingOperationInProgress);
if (shouldRetry) {
jsTestLog("Retrying moveChunk due to ConflictingOperationInProgress");
+ } else if (!result.ok) {
+ jsTestLog("moveChunk encountered an error: " + tojson(result));
}
+
return shouldRetry ? runMoveChunkUntilSuccessOrUnexpectedError() : result;
}
// Kick off the recursive helper function.