Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75637

Use 'retryWrites' when directly writing to the CSRS in `merge_all_chunks_on_shard.js`

    • Sharding EMEA
    • Fully Compatible
    • ALL
    • v7.0
    • Sharding EMEA 2023-04-17
    • 30

      An updateMany is performed to override the onCurrentShardSince field on chunk documents.

      When the config server steps down while serving the request the client could get a write concern error as the following:

      WriteConcernError({
          "code" : 6,
          "codeName" : "HostUnreachable",
          "errmsg" : "operation was interrupted; Error details: { writeConcern: { w: \"majority\", wtimeout: 0, provenance: \"implicitDefault\" } } at config",
          "errInfo" : {}
      })
      

      Changing the updateMany to happen as a part of a session with retryWrites:true would solve the issue. (Solution similar the one implemented for SERVER-66077).

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: