[SERVER-38387] agg_out.js concurrency workload always fails to shard the output collection Created: 04/Dec/18 Updated: 29/Oct/23 Resolved: 14/Jan/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.11, 4.0.7, 4.1.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jack Mulrow | Assignee: | James Wahlin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | todo_in_code | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Backport Requested: |
v4.0, v3.6, v3.4
|
||||||||||||||||
| Sprint: | Query 2019-01-14, Query 2019-01-28 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 0 | ||||||||||||||||
| Description |
|
The concurrency workload jstests/concurrency/fsm_workloads/agg_out.js runs aggregates with $out and will rarely attempt to shard the output collection with the key: _id: 'hashed', expecting all subsequent aggregates to fail. The workload's first state inserts to the output collection and sharding a populated collection requires an existing index matching the proposed key, but the test does not create a hashed index on _id in the output collection, so every attempt to shard the output collection fails with InvalidOptions, which isn't caught because the test does not assert the shardCollection command succeeds. |
| Comments |
| Comment by Githook User [ 05/Feb/19 ] |
|
Author: {'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}Message: (cherry picked from commit 9ed4ddae8b3c2aa7f876bdbfce00523c2b2a118c)
(cherry picked from commit aad17aeba520f5c421716cb2d740057be96ce61a) |
| Comment by Githook User [ 04/Feb/19 ] |
|
Author: {'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}Message: (cherry picked from commit 9ed4ddae8b3c2aa7f876bdbfce00523c2b2a118c)
(cherry picked from commit aad17aeba520f5c421716cb2d740057be96ce61a) |
| Comment by Githook User [ 14/Jan/19 ] |
|
Author: {'username': 'jameswahlin', 'email': 'james@mongodb.com', 'name': 'James Wahlin'}Message: |