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

DocumentSourceFindAndModifyImageLookup can hit invariant when used in a shard

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.4, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Sharding 2021-09-06, Sharding 2021-09-20
    • 1

      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.

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

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

              Created:
              Updated:
              Resolved: