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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 2.8.0-rc4
    • Affects Version/s: 2.8.0-rc2
    • Component/s: Performance
    • None
    • Fully Compatible
    • ALL
    • 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%
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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().

              Assignee:
              Matt Kangas (Inactive)
              Reporter:
              Slawomir Pawlowski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: