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

unify exception and error status handling in applyOplogBatchPerWorker

    XMLWordPrintable

    Details

      Description

      applyOplogBatchPerWorker is responsible for applying vectors of oplog entries assigned to each thread of a pool of writer threads. It calls applyOplogEntryOrGroupedInserts to apply the CRUD/command entry. Depending on how applyOplogEntryOrGroupedInserts returns an error (return error status or throw exception), any given error code that requires special handling (eg. NamespaceNotFound) may be handled either in the exception handling block or after applyOplogEntryOrGroupedInserts returns an error Status object. It would be desirable to unify this error handling behavior while accounting for any exceptions that should not be converted to a Status (eg. WriteConflictException).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-repl Backlog - Replication Team
              Reporter:
              benety.goh Benety Goh
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: