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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Amirsaman Memaripour
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: