Writes with a {w: majority, wtimeout:0} fail in case of network errors.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The _flushRoutingTableCacheUpdatesWithWriteConcern ({w:majority, wtimeout: 0}) command  fails to block indefinitely (which is expected if the wtimeout: 0 as per the docs) on a shard primary in case the shard is undergoing network issues and is in a state where the shard's replica set has no primary.

      An error status of WriteConcernFailed error is returned which is not retriable (by design). If a retriable (such as HostNotFound or HostUnreachable) error had been returned, the _flushRoutingTableCacheUpdatesWithWriteConcern would have been retried until it was successful (once the shard's replica set was healthy) and the resharding operation would not have failed.

      (Note: this was investigated on v6.0)

              Assignee:
              Unassigned
              Reporter:
              Nandini Bhartiya
              Votes:
              0 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated: