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

extend WriteConflictException construction to accept context string

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2021-11-01

      A WriteConflictException currently contains a generic message. Generally, this is acceptable because a WriteConflictException is used mostly within a WCE retry loop. In certain cases, the caller may want to include some contextual information in a string format. Extending the WriteConflictException constructor to accept a context string (which will be passed to DBException::addContext()) would be a convenient way to capture this additional information.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: