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

tassert tripped on 1-shard sharded $unionWith + $search

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL

      In this case we end up with the single shard executing an operation over two namespaces: the aggregation's namespace, and the $unionWith namespace.

      So there are probably two things to fix:
      1. The inner pipeline needs to avoid doing shard filtering during the idLookup stage itself. This if statement is flawed for this case - it needs to account for the namespace being targeted.
      2. The desugaring of $search that happens within the $unionWith needs to be sure to inject an explicit shard filtering stage after the idLookup. I'm not sure why this isn't happening, it seems like it might have just been an oversight. I will attempt to exploit this separately than #1 to verify that it's a problem and that we can fix it.

            Assignee:
            charlie.swanson@mongodb.com Charlie Swanson
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: