Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
None
-
ALL
-
Query 2018-02-12
Description
When we introduced the 2-shards sharded collections passthrough, this assertion was typed in the wrong order:
// If the collection is sharded, we expect at most 2 distinct values per shard. If the |
// collection is not sharded, we expect 2 returned. |
assert.lte(2 * FixtureHelpers.numberOfShardsForCollection(coll),
|
explain_distinct_with_query.executionStats.nReturned);
|
That should be flipped:
// If the collection is sharded, we expect at most 2 distinct values per shard. If the |
// collection is not sharded, we expect 2 returned. |
assert.lte(explain_distinct_with_query.executionStats.nReturned,
|
2 * FixtureHelpers.numberOfShardsForCollection(coll));
|
Attachments
Issue Links
- duplicates
-
SERVER-33006 lte assertion in distinct_compound_index.js is in the wrong order
-
- Closed
-