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

XMLWordPrintableJSON

    • Cluster Scalability
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              [DO NOT USE] Backlog - Cluster Scalability
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: