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

The continuous stepdown thread may execute stepdown after it was paused

    XMLWordPrintable

    Details

    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Linked BF Score:
      0
    • Story Points:
      3

      Description

      The stepdown thread can execute the stepdown if the resumed event is cleared by the hook just after the thread ran the wait() on it. 

      1. The stepdown thread checks if it has to wait: checks _is_resumed_evt which is set, so it continues
      2. The hook calls pause()
        1. In pause(): the _is_resumed_evt is cleared
        2. In pause(): the hook waits on _is_idle_evt which it already set so it continues
      3. The stepdown thread runs _step_down_all()

        Attachments

          Activity

            People

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM)
            Reporter:
            yves.duhem Yves Duhem
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: