[SERVER-79718] Remove HostTypeRequirement::kPrimaryShard from $out Created: 04/Aug/23  Updated: 08/Feb/24  Resolved: 08/Feb/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0-rc0

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: pm3229-m1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-81844 Make ShardServerProcessInterface::cre... Closed
Related
related to SERVER-83614 $queue/$lookup pipeline can throw if ... Closed
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Sprint: QE 2023-11-27, QE 2023-12-11, QE 2023-12-25, QE 2024-01-08, QE 2024-01-22, QE 2024-02-05, QE 2024-02-19
Participants:

 Description   
  • Implement distributedPlanLogic() to select the shard on which we are writing the data indicate that the merging pipeline (or full pipeline if unsplit) should be executed on that shard.
  • That ShardId should be stored as a data member and passed to MongoProcessInterface::createCollection() when creating the temp collection.

Test cases:

  • Input and output collection both exist, are both unsharded and both reside on the same non-primary shard
  • Input and output collection both exist and are unsharded but reside on different non-primary shards
  • Input collection is sharded. Output collection exists and resides on a non-primary shard.
  • Output collection does not exist. Input collection is unsharded and resides on a non-primary shard.
  • Output collection exist and resides on a non-primary shard and moved during execution to another shard.


 Comments   
Comment by Githook User [ 08/Feb/24 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@mongodb.com', 'username': 'mtandrei'}

Message: SERVER-79718 Remove HostTypeRequirement::kPrimaryShard from $out

Co-authored-by: Ivan Fefer <ivan.fefer@mongodb.com>
GitOrigin-RevId: c6d0063c0e3ded182341297e90b684ece8bec621
Branch: master
https://github.com/mongodb/mongo/commit/196e1635ca0740b05a109525f51df5f85eb58962

Comment by Ivan Fefer [ 15/Nov/23 ]

We need to wait for SERVER-81844, before we can create temporary collections on non-primary shards.

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