[DOCS-15470] [C2C] Add 'CanWrite' field as part of response to status request Created: 06/Jul/22  Updated: 13/Nov/23  Resolved: 18/Jul/22

Status: Closed
Project: Documentation
Component/s: C2C, manual, Server
Affects Version/s: None
Fix Version/s: 1.0.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Dave Cuthbert (Inactive)
Resolution: Fixed Votes: 0
Labels: c2c-ga-required
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Participants:
Days since reply: 1 year, 31 weeks ago
Epic Link: DOCSP-22764

 Description   

Investigate changes in REP-837

Original Downstream Change Summary

getProgress will display a field canWrite, which client can use to determine when they can write to the new cluster after issuing 'Commit'. Example progress response which shows status as committing and canWrite set to true:
{"state":"COMMITTED","canCommit":false,"canWrite":true,"info":"commit completed","lagTimeSeconds":0,"collectionCopy":

{"estimatedTotalBytes":429810,"estimatedCopiedBytes":429810}

,"directionMapping":

{"Source":"cluster0: localhost:20500,localhost:20501","Destination":"cluster1: localhost:20502,localhost:20503"}

}}

Description of Linked Ticket

Add a new field 'canWrite' as part of response to status request.
It will be true if mongosync has transitioned to phase.WaitingForIndexConstraintEnablement or phase.Committed (and false otherwise).


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