[SERVER-64769] Make sure $_internalBoundedSort provides sort key for sharded mergesort Created: 21/Mar/22  Updated: 29/Oct/23  Resolved: 06/May/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc5, 6.1.0-rc0, 5.0.16

Type: Task Priority: Major - P3
Reporter: David Percy Assignee: Dan Larkin-York
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
depends on SERVER-64349 Add heuristic-based planning support ... Closed
is depended on by SERVER-52286 Enable feature flag for Bucket unpack... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.0
Sprint: QO 2022-04-18, QO 2022-05-02, QO 2022-05-16
Participants:

 Description   

Normally $sort uses the needsMerge flag to decide whether to return the sort key as metadata:
https://github.com/10gen/mongo/blob/85409b314c52efaa1987d50291f2779dfa314328/src/mongo/db/pipeline/document_source_sort.cpp#L450-L455

Presumably we will need to do the same thing for $_internalBoundedSort.



 Comments   
Comment by Githook User [ 21/Feb/23 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-64769 Make sure bounded sorter provides sort key for sharded mergesort

(cherry picked from commit 71305cfbc159203f01c80c6bcb1852ab598e4e33)
Branch: v5.0
https://github.com/mongodb/mongo/commit/c895cc1b6e788ed3aef7122dfcf680de95a31a4f

Comment by Githook User [ 06/May/22 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-64769 Make sure bounded sorter provides sort key for sharded mergesort
Branch: v6.0
https://github.com/mongodb/mongo/commit/71305cfbc159203f01c80c6bcb1852ab598e4e33

Comment by Githook User [ 06/May/22 ]

Author:

{'name': 'Dan Larkin-York', 'email': 'dan.larkin-york@mongodb.com', 'username': 'dhly-etc'}

Message: SERVER-64769 Make sure bounded sorter provides sort key for sharded mergesort
Branch: master
https://github.com/mongodb/mongo/commit/b059a67843932416df6d6475218c9081e1392c33

Generated at Thu Feb 08 06:01:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.