Details
-
Task
-
Resolution: Fixed
-
Major - P3
-
None
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":
,"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).