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

DocumentSourceFindAndModifyImageLookup can hit invariant when used in a shard

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.4, 5.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Sharding 2021-09-06, Sharding 2021-09-20
    • 1

    Description

      and run as an internal client. This is because it relies on getCollectionOptions to get the UUID. However, for internal clients run in the shard, the ShardServerProcessInterface is used. ShardServerProcessInterface uses listCollections to get the options, but it has a special logic that changes how uuid is returned.

      It appears that the DocumentSourceChangeStreamAddPreImage also gets the UUID the same way.

      Attachments

        1. test.diff
          2 kB
        2. test.js
          2 kB

        Activity

          People

            randolph@mongodb.com Randolph Tan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: