Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48047

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

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Query 2020-05-18
    • 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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ruoxin.xu Ruoxin Xu
              Reporter:
              judah.schvimer Judah Schvimer
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: