diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-05-04 11:19:36 -0400 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-05-07 08:32:22 -0400 |
commit | 2b21ce68e3471d7540f567c3dfc308af16b8e704 (patch) | |
tree | 492cc69270a3ca8ac1d2d65aeb18696e578bcfdc /jstests/replsets/secondary_reads_timestamp_visibility.js | |
parent | 51dce76324173089098e8c9fd09e46b98b32adc4 (diff) | |
download | mongo-2b21ce68e3471d7540f567c3dfc308af16b8e704.tar.gz |
SERVER-34771 Log read concern level when checking document visibility
Diffstat (limited to 'jstests/replsets/secondary_reads_timestamp_visibility.js')
-rw-r--r-- | jstests/replsets/secondary_reads_timestamp_visibility.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/replsets/secondary_reads_timestamp_visibility.js b/jstests/replsets/secondary_reads_timestamp_visibility.js index 5956d7d02fe..3568b7a2910 100644 --- a/jstests/replsets/secondary_reads_timestamp_visibility.js +++ b/jstests/replsets/secondary_reads_timestamp_visibility.js @@ -56,6 +56,7 @@ // We should see the previous, un-replicated state on the secondary with every readconcern. for (let i in levels) { + print("Checking that no new updates are visible yet for readConcern: " + levels[i]); assert.eq(secondaryDB.getCollection(collName).find({x: 0}).readConcern(levels[i]).itcount(), 100); assert.eq(secondaryDB.getCollection(collName).find({x: 1}).readConcern(levels[i]).itcount(), @@ -73,7 +74,8 @@ replSet.awaitReplication(); for (let i in levels) { - // We should see the previous state on the secondary with every readconcern. + print("Checking that new updates are visible for readConcern: " + levels[i]); + // We should see the new state on the secondary with every readconcern. assert.eq(secondaryDB.getCollection(collName).find({x: 0}).readConcern(levels[i]).itcount(), 0); assert.eq(secondaryDB.getCollection(collName).find({x: 1}).readConcern(levels[i]).itcount(), |