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

Replace `iasserted` with `throw` in `throwWriteConflictException`

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v7.0
    • Service Arch 2023-05-15
    • 129

      SERVER-66205 introduced throwWriteConflictException, which calls into iasserted to throw instances of WriteConflictException. For workloads that excersice contended writes, the additional, non-inlined function calls may cause performance regression. As part of this ticket, we should replace instance of iasserted(someStatus) with the following:

      throw ExceptionFor<ErrorCodes::WriteConflictException>(someStatus);
      

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: