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

mongoperf crashes writing with MMF and syncDelay is other that 0-never

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc2
    • Fix Version/s: 2.8.0-rc4
    • Component/s: Performance
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      echo "{nThreads:16,fileSizeMB:1000,r:true,w:true,mmf:true,syncDelay:6}" | ./mongoperf

      Reproduce 100%

      Show
      echo "{nThreads:16,fileSizeMB:1000,r:true,w:true,mmf:true,syncDelay:6}" | ./mongoperf Reproduce 100%

      Description

      mongoperf crash in mode MMF when syncDelay is set.
      Inside mongoperf.cpp::syncThread(): mmfFile->flush(true); call ProcessInfo::preferMsyncOverFSync(); who is not inited, and try use NULL pointer to class.
      Function ProcessInfo::initializeSystemInfo(); should be used before first use of syncThread().

        Attachments

          Activity

            People

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            spawlows Slawomir Pawlowski
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: