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

WriteBatchExecutor doesn't handle primary demotion when recovering from yield during inserts

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.0-rc2
    • Affects Version/s: 2.6.0-rc1
    • Component/s: Write Ops
    • Labels:
      None
    • ALL

      Any time a thread acquires the write lock to perform a user operation on a non-local database, it needs to confirm that the node is primary. When WBE::execInserts does periodic yielding, it is not performing this check, leading to potential fatal errors.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: