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

ServiceContext::unsetKillAllOperations should be marked as _forTest or removed

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Programmability 2025-04-14, Programmability 2025-04-28
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We assume that the global kill switch is a one-way toggle in production code. If it can be flipped back off, that unleashes a bunch of new race conditions that we shouldn't need to think about. Luckily it is only used from test code. At the very least we should mark it as test only to ensure it doesn't get used in production code. It may also be worth checking if the tests can easily be modified to not require that function at all, but it probably isn't worth putting too much time into that if it proves tricky.

            Assignee:
            richy.gerard@mongodb.com Richy Gerard
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: