[DOCS-11964] Docs for SERVER-33710: Support readConcern snapshot with atClusterTime in cluster distinct command Created: 13/Aug/18  Updated: 29/Oct/23  Resolved: 30/May/19

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.2

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: docs-txns
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-33710 Support readConcern snapshot with atC... Closed
Participants:
Days since reply: 4 years, 37 weeks ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

----------------------------

Original Description

Description:

No documentation summary in engineering ticket

Engineering Ticket Description:

As part of this ticket:

  • Ensure ClusterDistinct supports readConcern level snapshot
  • Ensure ClusterDistinct selects an appropriate atClusterTime based on the shards it targets, and will retry on snapshot errors
  • Add unit tests verifying this works

Proposed implementation:

  1. Add a supportsReadConcern to ClusterDistinct that always returns true
  2. Update functions in cluster_commands_helpers.cpp to compute atClusterTime and attach it to the generated responses, like in ClusterAggregate (computing atClusterTime with computeAtClusterTime, attaching atClusterTime with appendAtClusterTime)
    • buildVersionedRequestsForTargetedShards here
    • buildUnversionedRequestsForShards here
  3. snapshot errors are already retried in strategy.cpp, so there should be no work there
  4. Add unit test verify requests sent by ClusterDistinct contain appropriate atClusterTimes and are retried on snapshot errors, like the existing ClusterFind tests

----------------------------

Description

Scope of changes (files that need work and how much)

  • work for distinct and transactions were mainly done via DOCS-12725
  • This just updated the read concern page table. Later, some reorg of the table is in order.

Impact to other docs outside of this product

MVP (work and date?)

Resources (e.g. Scope Docs, Invision)



 Comments   
Comment by Githook User [ 30/May/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11964: distinct and snapshot rc
Branch: master
https://github.com/mongodb/docs/commit/75750cf83aa3df5bb6d1d56ed35492164ea23e2e

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