-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
3
-
Tools and Replicator
-
1
Problem Statement/Rationale
In practice, it is possible that a collMod operation can run without specifying neither expireAfterSeconds or hidden. However, using mongorestore to restore a collMod oplog on an index, it triggers an error if the collMod lacks both of the options:
Failed: restore error: error applying oplog: could not handle collMod on test.index_prepareUnique: must specify expireAfterSeconds or hidden: ...
Steps to Reproduce
- Start mongodump and dump the oplog
- Run collMod on an index with options lacking expireAfterSeconds and hidden.
- Restore the oplog using mongorestore
Expected Results
Mongorestore should apply the collMod operation correctly without crashing
Actual Results
Mongorestore crashes with the error
Additional Notes
This bug showed up in a passthrough test (link)
- is related to
-
TOOLS-4055 could not handle collMod | failed: ctc_rs_dump_archive_oplog_stepdown_jscore_passthrough_v60_to_v60 on mongodump-v60-to-v60-amazon2-arm64 [mongo-tools @ 3f2e10ee] (job_log_job2)
-
- Needs Discussion
-