diff options
author | Sergi Mateo Bellido <sergi.mateo-bellido@mongodb.com> | 2022-09-07 18:02:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-07 19:16:33 +0000 |
commit | 343108041c5b3570e97418ee3204804535fbde4d (patch) | |
tree | eb05141631c9933f552b22b6d3a9d0d6116ac145 /jstests/sharding | |
parent | a9543a8144ce552bcca18437a8aa6b969a483ed5 (diff) | |
download | mongo-343108041c5b3570e97418ee3204804535fbde4d.tar.gz |
SERVER-64730 Interrupt ongoing refreshes after entering into the critical section
Diffstat (limited to 'jstests/sharding')
-rw-r--r-- | jstests/sharding/libs/resharding_test_fixture.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/sharding/libs/resharding_test_fixture.js b/jstests/sharding/libs/resharding_test_fixture.js index 1091ee70ce8..78ca070cc62 100644 --- a/jstests/sharding/libs/resharding_test_fixture.js +++ b/jstests/sharding/libs/resharding_test_fixture.js @@ -634,7 +634,11 @@ var ReshardingTest = class { /** @private */ _checkConsistency() { - const nsCursor = this._st.s.getCollection(this._ns).find().sort({_id: 1}); + // The "available" read concern level won't block this find cmd behind the critical section. + // Tests for resharding are not expected to have unowned documents in the collection being + // resharded. + const nsCursor = + this._st.s.getCollection(this._ns).find().readConcern("available").sort({_id: 1}); const tempNsCursor = this._st.s.getCollection(this._tempNs).find().sort({_id: 1}); const diff = ((diff) => { |