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

WiredTiger WriteConflictException should Include the actual namespace or at least the table name that encountered the write conflict

    • RSS Sydney
    • SongingMoose - 2025-01-07
    • 200

      Currently When write conflict happens we see log like this

      [j0:s0:n1] {"t":{"$date":"2024-07-04T00:47:02.988+00:00"},"s":"I",  "c":"WRITE",    "id":4640401, "svc":"S", "ctx":"TransactionCoordinator","msg":"Caught WriteConflictException","attr":{"operation":"implicit collection creation","reason":"Caused by :: Collection namespace 'config.transaction_coordinators' is already in use. :: Please retry your operation or multi-document transaction.","namespace":"config.transaction_coordinators","attempts":0}}
      

      it only logs the parent collection namespace, not the side collection namespace, even if the write conflict happened in the side collection, causing the whole transaction to abort and rolling back the parent collection writes. WC logs should include the actual namespace or at least the table name that encountered the write conflict. think about passing that table name info to this method and include it in reason field.

            Assignee:
            daniel.khuu@mongodb.com Daniel Khuu
            Reporter:
            kishore.devireddy@mongodb.com Kishore Devireddy
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: