diff options
-rw-r--r-- | src/mongo/shell/data_consistency_checker.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/shell/data_consistency_checker.js b/src/mongo/shell/data_consistency_checker.js index b0282603edf..9530b12c416 100644 --- a/src/mongo/shell/data_consistency_checker.js +++ b/src/mongo/shell/data_consistency_checker.js @@ -335,7 +335,13 @@ var {DataConsistencyChecker} = (function() { collectionPrinted, sourceCollInfos, syncingCollInfos, collName); const shouldIgnoreFailure = this.canIgnoreCollectionDiff(sourceCollInfos, syncingCollInfos, collName); - success = shouldIgnoreFailure; + if (shouldIgnoreFailure) { + prettyPrint( + `Collection diff in ${dbName}.${collName} can be ignored: ${dbHashesMsg} + . Inconsistencies in the image collection can be expected in certain + restart scenarios.`); + } + success = shouldIgnoreFailure && success; } }); |