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

WriteConflict counter in serverStatus is not ticked if it is thrown by transaction

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • Execution Team 2023-11-13

      As opposed to non-transactional writes, when a multi-statement transaction throws a writeConflict, we don't increment the writeConflicts counter in serverStatus. This can be confusing for end users since driver automatically retries transactions on writeConflicts (imagine a user sees writeConflictExceptions in a transaction being logged or even popped up to application when driver exhausts retry, but then finds out that the writeConflict counter is not updated).

            Assignee:
            wei.hu@mongodb.com Wei Hu
            Reporter:
            wenbin.zhu@mongodb.com Wenbin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: