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

ReshardingOplogApplicationRules::applyOperation() doesn't retry on WriteConflictExceptions

    • Fully Compatible
    • ALL
    • Sharding 2021-02-08
    • 1

      WriteConflictException extends from DBException so the WriteConflictException exception is converted into a status and returned up the stack.

      try {
          ...
      } catch (const ExceptionFor<ErrorCodes::LockTimeout>&) {
          throw WriteConflictException();
      } catch (const DBException& ex) {
          return ex.toStatus();
      }
      

      https://github.com/mongodb/mongo/blob/593de2a7ed6e6717ed35112c63ab3ee38b825851/src/mongo/db/s/resharding/resharding_oplog_application.cpp#L179-L183

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: