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

unify exception and error status handling in applyOplogBatchPerWorker

    • Replication

      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).

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: