Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15470

[C2C] Add 'CanWrite' field as part of response to status request

    XMLWordPrintableJSON

Details

    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).

      Attachments

        Activity

          People

            dave.cuthbert@mongodb.com Dave Cuthbert (Inactive)
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 31 weeks ago