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

Add ResumableChangeStreamError label to ReadConcernMajorityNotAvailableYet errors

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0, 5.0.16, 6.0.6
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v6.0, v5.0, v4.4
    • Repl 2022-08-22, Repl 2022-09-05

      A user is reporting that their change stream is failing with a ReadConcernMajorityNotAvailableYet errors:

      We have a service that listen on one collection, we use change stream to watch for a collection. We use mongodb 5.0 version. I don’t know why but we encountered this error:

      pymongo.errors.OperationFailure: Executor error during getMore :: caused by :: Committed view disappeared while running operation, full error: {'ok': 0.0, 'errmsg': 'Executor error during getMore :: caused by :: Committed view disappeared while running operation', 'code': 134, 'codeName': 'ReadConcernMajorityNotAvailableYet', '$clusterTime': {'clusterTime': Timestamp(1635457764, 1), 'signature': {'hash': b'\xb9\xedq\xf5)\xa2\xd9s\xe6\xe8\xbc\x01\xfd\x1b\xb3\x1d[;#V', 'keyId': 7021065227265376259}}, 'operationTime': Timestamp(1635457764, 1)}
      About database server we use:

      storage engine: WiredTiger
      Replication Factor: Three-node
      Minor Version 6.0.0-20210924172808_1
      Version 5.0
      Read-only Nodes: 0

      I would like to get help on knowing what could be the cause of the error and how to prevent it?

      https://www.mongodb.com/community/forums/t/committed-view-disappeared-read-concern-majority-not-available-yet-code-134/130471

      Should the server be attaching the ResumableChangeStreamError label to ReadConcernMajorityNotAvailableYet errors so that the driver can retry?

            Assignee:
            vesselina.ratcheva@mongodb.com Vesselina Ratcheva (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: