[SERVER-64572] Support $merge against secondaries when talking directly to shardsvrs Created: 16/Mar/22 Updated: 06/Apr/23 Resolved: 06/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Esha Maharishi (Inactive) | Assignee: | Backlog - Query Execution |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | phase3, replace-atlas-proxy-w-mongoq, serverless-routing | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Execution
|
||||||||
| Participants: | |||||||||
| Description |
|
Currently, when shardsvr secondaries call DocumentSourceMerge::spill, they try to write directly against themselves because they had created a StandaloneProcessInterface and the $merge fails with NotWritablePrimary. This is required to upgrade Serverless's architecture to support sharding. |
| Comments |
| Comment by Janna Golden [ 06/Apr/23 ] |
|
This work will not be needed in light of the invisible sharding initiative's goal of making all clusters sharded by default in 8.0, with an embedded router. Serverless will no longer need to upgrade to an interim architecture where the client needs to talk directly to a shardsvr without a router process. |
| Comment by Esha Maharishi (Inactive) [ 16/Mar/22 ] |
|
Query team, I created this ticket to correspond to the new line item in the Serverless init plan. Please feel free to place it on your backlog; I will add it as a Serverless request for an upcoming quarter. |