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

Add comments to explain setSystemOperationUnkillableByStepdown

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • Repl 2023-09-04, Repl 2023-09-18
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      The function name setSystemOperationUnkillableByStepdown is not clearly expressing the exact case of killOp during stepdown. Like, the thread won't be interrupted during stepdown if it doesn't hold any global lock. 

      We should add more comments around setSystemOperationUnkillableByStepdown so people who want to use it can make the right choice. We'd better provide suggestions on when a thread is interrupted by stepdown, how should the upper layer handle it.

            Assignee:
            jiawei.yang@mongodb.com Jiawei Yang
            Reporter:
            jiawei.yang@mongodb.com Jiawei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: