DocumentSourceFindAndModifyImageLookup can hit invariant when used in a shard

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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 Tan
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: