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

Unhelpful error message about transactions in a sharded cluster with a standalone shard when trying to use retryable writes

    • Cluster Scalability

      Reported in PYTHON-2048. When a Mongos routes a retryable write to a standalone shard the driver gets the following error:

      {
       'n': 0,
       'ok': 1.0,
       'operationTime': Timestamp(1573609811, 1),
       'writeErrors': [{'code': 20,
                        'codeName': 'IllegalOperation',
                        'errmsg': 'Transaction numbers are only allowed on a replica set member or mongos',
                        'index': 0}]
       '$clusterTime': {'clusterTime': Timestamp(1573609811, 1),
                        'signature': {'hash': b'\x00\x00\x00\x00\x00\x00\x00\x00'
                                              b'\x00\x00\x00\x00\x00\x00\x00\x00'
                                              b'\x00\x00\x00\x00',
                                      'keyId': 0}}
      }
      

      Could we improve this error message?

            Assignee:
            backlog-server-cluster-scalability [DO NOT USE] Backlog - Cluster Scalability
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: