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

Race Condition in FailPoint::setMode

    XMLWordPrintable

    Details

    • Operating System:
      ALL

      Description

      It is possible to have _fpInfo be greater than zero after the spinning on while (_fpInfo.load() != 0) because slowShouldFailOpenBlock does not try to grab the lock. So

      _fpInfo.store(ACTIVE_BIT);

      should be an atomic bitwise OR instead.

        Attachments

          Activity

            People

            Assignee:
            renctan Randolph Tan
            Reporter:
            renctan Randolph Tan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: