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-21 19:04:47 +0000
commit8643180253568239b1e53cfb345453a4fbdbfd8f (patch)
tree7109d0bb943b60318148e7239d0c0da6b0e354ff
parent7c13a4891595fe670ff580d7275fff51ac0c8d86 (diff)
downloadmongo-8643180253568239b1e53cfb345453a4fbdbfd8f.tar.gz
SERVER-62171 Add logs to output of runConcurrentMoveChunk in sharding_statistics_server_status.js
(cherry picked from commit c95486cacb674ccacda5e8123c320d45bbcaa54c)
-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 95904fe5d0b..9e5c08956a0 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.