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

Aggregations that merge on mongos do not respect the collation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 3.6.0
    • None
    • Aggregation Framework
    • None
    • Fully Compatible
    • ALL
    • v3.6
    • Hide

      First, apply this patch to run with multiple shards:

      diff --git a/buildscripts/resmokeconfig/suites/aggregation_sharded_collections_passthrough.yml b/buildscripts/resmokeconfig/suites/aggregation_sharded_collections_passthrough.yml
      index de8b568eee..68b988f909 100644
      --- a/buildscripts/resmokeconfig/suites/aggregation_sharded_collections_passthrough.yml
      +++ b/buildscripts/resmokeconfig/suites/aggregation_sharded_collections_passthrough.yml
      @@ -48,6 +48,7 @@ executor:
           n: 20
         fixture:
           class: ShardedClusterFixture
      +    num_shards: 2
           mongos_options:
             set_parameters:
               enableTestCommands: 1
      

      and then run

      $ python2 buildscripts/resmoke.py --suites aggregation_sharded_collections_passthrough jstests/aggregation/sources/sort/collation_sort.js
      

      Show
      First, apply this patch to run with multiple shards: diff --git a/buildscripts/resmokeconfig/suites/aggregation_sharded_collections_passthrough.yml b/buildscripts/resmokeconfig/suites/aggregation_sharded_collections_passthrough.yml index de8b568eee..68b988f909 100644 --- a/buildscripts/resmokeconfig/suites/aggregation_sharded_collections_passthrough.yml +++ b/buildscripts/resmokeconfig/suites/aggregation_sharded_collections_passthrough.yml @@ -48,6 +48,7 @@ executor: n: 20 fixture: class: ShardedClusterFixture + num_shards: 2 mongos_options: set_parameters: enableTestCommands: 1 and then run $ python2 buildscripts/resmoke.py --suites aggregation_sharded_collections_passthrough jstests/aggregation/sources/sort/collation_sort.js
    • Query 2017-12-18, Query 2018-01-01

    Description

      In SERVER-22760, we allowed certain aggregation pipelines to merge on mongos. However, it seems that the merging logic does not respect the collation when merging sorted results from multiple shards. I can't reproduce this behavior when disabling merging on mongos via internalQueryProhibitMergingOnMongoS.

      Attachments

        Issue Links

          Activity

            People

              kyle.suarez@mongodb.com Kyle Suarez
              kyle.suarez@mongodb.com Kyle Suarez
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: