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

$facet and $bucket stages do not ensure they are run on the merging shard

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.12
    • None
    • Aggregation Framework
    • None
    • Fully Compatible
    • ALL
    • Query 2016-08-29

    Description

      As an oversight in the initial implementation, DocumentSourceFacet does not inherit from SplittableDocumentSource, failing to signal that it is special and needs to be run on the merging shard. The same problem affects $bucketAuto.

      This was failed to be caught because the integration test which runs $facets against a sharded cluster only does so when the collection is not sharded: https://github.com/mongodb/mongo/blob/r3.3.10/jstests/aggregation/sources/facet/use_cases.js#L102

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: