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

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

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

      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@mongodb.com Hugh Tong (Inactive)
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: