[SERVER-48047] Do not generate "hidden" field in oplog if collMod "hidden" parameter is a no-op Created: 08/May/20  Updated: 29/Oct/23  Resolved: 14/May/20

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Querying, Replication
Affects Version/s: 4.4.0-rc4
Fix Version/s: 4.4.0-rc6

Type: Bug Priority: Major - P3
Reporter: Judah Schvimer Assignee: Ruoxin Xu
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-9306 Ability to temporarily forbid query o... Closed
Related
related to SERVER-61980 collMod does not consider unique opti... Closed
related to SERVER-62000 Do not generate "unique" field in opl... Closed
related to SERVER-48397 Make collMod no-op behaviour consistent Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Query 2020-05-18
Participants:
Linked BF Score: 38

 Description   

collMod creates oplog entries, even when it does nothing. In FCV 4.2, it can create this oplog entry:

  {dbName: 'db10',commandObj: {collMod: 'coll12',index: {name: 'idx_f',hidden: false}}},

It's not rejected since it's "hidden: false", but also 4.2 is unhappy due to this logic that expects an "expireAfterSeconds" field.



 Comments   
Comment by Githook User [ 14/May/20 ]

Author:

{'name': 'Ruoxin Xu', 'email': 'ruoxin.xu@mongodb.com', 'username': 'RuoxinXu'}

Message: SERVER-48047 Do not generate "hidden" field in oplog if collMod "hidden" parameter is a no-op

(cherry picked from commit 4497a21aae1bf9eabce5394798582f113d2f5a45)
Branch: v4.4
https://github.com/mongodb/mongo/commit/cd9fbb56900343e7b1193922a2c4b197895e7f56

Comment by Githook User [ 13/May/20 ]

Author:

{'name': 'Ruoxin Xu', 'email': 'ruoxin.xu@mongodb.com', 'username': 'RuoxinXu'}

Message: SERVER-48047 Do not generate "hidden" field in oplog if collMod "hidden" parameter is a no-op
Branch: master
https://github.com/mongodb/mongo/commit/4497a21aae1bf9eabce5394798582f113d2f5a45

Generated at Thu Feb 08 05:15:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.