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

Change stream accidentally filters out rename event from reshardCollection [5.0 Only]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.3
    • None
    • None
    • Fully Compatible
    • ALL
    • QE 2021-08-09, QE 2021-08-23, QE 2021-09-06

    Description

      The rename oplog looks like this:

      {
        "op" : "c",
        "ns" : "reshardingDb.$cmd",
        "ui" : UUID("2c7b8ac2-9840-4c57-9d1c-4f9905ed1fe3"),
        "o" : {
          "renameCollection" : "reshardingDb.system.resharding.f1b71bc0-6a4c-4cd5-b6ef-ac50e5de3170",
          "to" : "reshardingDb.coll",
          "stayTemp" : false,
          "dropTarget" : UUID("f1b71bc0-6a4c-4cd5-b6ef-ac50e5de3170")
        },
        "o2" : {
          "numRecords" : 0
        },
        "ts" : Timestamp(1627312165, 17),
        "t" : NumberLong(1),
        "v" : NumberLong(2),
        "wall" : ISODate("2021-07-26T15:09:25.358Z"),
        "fromMigrate" : true
      } 
      

      But it gets filtered out because this fromMigrate != true expression is always present, regardless of the showMigrationEvents boolean argument.

      Attachments

        Issue Links

          Activity

            People

              rishab.joshi@mongodb.com Rishab Joshi (Inactive)
              randolph@mongodb.com Randolph Tan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: