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

Introduce safeguard to attemptInsertIntoBucket's unbounded loop

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution

      attemptInsertIntoBucket has an infinite while loop that led to a deadlock under specific conditions of a pair of WCE's being thrown by multiple threads in this loop. This code is getting more difficult to comprehend, it could be worth adding a mechanism to exit the loop after a number of iterations to help cleanup state and retry at a higher level.

      This prevents other classes of logic issues that may or may not exist today, and would protect against code changes in this loop or its downstream callees.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.kneiser@mongodb.com Matt Kneiser
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: