Aggregation with $lookup span multiple collections does not work correctly in multitenancy mode

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Serverless
    • Fully Compatible
    • Server Serverless 2022-12-26, Server Serverless 2023-01-09
    • 5
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Test with injecting security token, the jstests/core/txns/aggregation_in_transaction.js get failure when it performs aggregations that look at other collections. 

      Here is the error message and code.

      • "errmsg" : "Expected collection info, but found none; target collection: test.aggregation_in_transaction_lookup"
      • "code" : 5842600

      It maybe is caused by the planner analysis code which drop off the tenant information. 

            Assignee:
            Hugh Tong (Inactive)
            Reporter:
            Sophia Tan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: