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

Invalidate previous OperationContext when a new OperationContext is created

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • v4.4
    • Service arch 2020-11-30

      We have an aggressive invariant here. This means that we crash the server whenever we attempt to replace an OperationContext instead of explicitly destroying and then recreating. We can keep that invariant in test environments. In production, I believe we should interrupt the previous OperationContext to produce an AssertionError. We should probably also log and emit an exception at the call site to make sure we don't end up in an unsatisfiable wait.

            Assignee:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: