[SERVER-36424] Make sure $out's uniqueKey is unique when target collection is unsharded Created: 02/Aug/18  Updated: 29/Oct/23  Resolved: 27/Aug/18

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.1.3

Type: Task Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-36047 (Sharded target collection) Enforce e... Closed
Documented
is documented by DOCS-12015 Docs for SERVER-36424: Make sure $out... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2018-08-13, Query 2018-08-27, Query 2018-09-10
Participants:

 Description   

This is just the unsharded piece of SERVER-36047, which we can split off because it won't depend on support for $out to a sharded collection in the same way.

As part of this ticket we should verify that:

  1. An index exists with some combination of the fields from the uniqueKey. The order of the uniqueKey fields shouldn't matter here, so if my uniqueKey was {a: 1, b: 1} an index on {b: 1, a: 1} should suffice.
  2. That index is unique.
  3. That index is not partial.
  4. That index is compatible with the operation's collation.

 



 Comments   
Comment by Githook User [ 27/Aug/18 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-36424 Enforce uniqueKey is unique enough
Branch: master
https://github.com/mongodb/mongo/commit/4422204cd233c1fd0e70b71223feb62d3df54a18

Comment by Charlie Swanson [ 20/Aug/18 ]

I've inherited this ticket from Minji and I'm not working on it just yet. Moving back to "Open".

Generated at Thu Feb 08 04:43:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.