diff options
author | Benety Goh <benety@mongodb.com> | 2021-07-12 13:15:11 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-23 22:45:10 +0000 |
commit | 79e845bce5fe7572af038fa1dcec48a4b932a6b2 (patch) | |
tree | b30c33fd968aa09d76b4393e419de8caa53eea8e /jstests/noPassthrough | |
parent | d2b409c3238a67ee4ce17e3a41a1efc341c4d5ac (diff) | |
download | mongo-79e845bce5fe7572af038fa1dcec48a4b932a6b2.tar.gz |
SERVER-58280 initial sync aborts index builds before applying collMod
This fixes initial sync issues during oplog application when indexes are
being hidden/unhidden - these index operations are encoded as collMod
commands.
(cherry picked from commit 8922a0ea148c2d883ce724190e0d20a2e2bfd253)
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r-- | jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js b/jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js index 81df8e8f6e4..92821dca39c 100644 --- a/jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js +++ b/jstests/noPassthrough/initial_sync_aborts_two_phase_index_builds_hide_index.js @@ -57,6 +57,8 @@ let secondary = rst.restart(1, { checkLog.containsJson(secondary, 21138); assert.commandWorked(coll.insert({a: 2})); +assert.commandWorked(coll.hideIndex({a: 1})); +assert.commandWorked(coll.unhideIndex({a: 1})); assert.commandWorked(coll.dropIndex({a: 1})); IndexBuildTest.pauseIndexBuilds(secondary); |