[SERVER-16586] mongoperf crashes writing with MMF and syncDelay is other that 0-never Created: 18/Dec/14  Updated: 24/Dec/14  Resolved: 19/Dec/14

Status: Closed
Project: Core Server
Component/s: Performance
Affects Version/s: 2.8.0-rc2
Fix Version/s: 2.8.0-rc4

Type: Bug Priority: Minor - P4
Reporter: Slawomir Pawlowski Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

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

Reproduce 100%

Participants:

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



 Comments   
Comment by Githook User [ 19/Dec/14 ]

Author:

{u'username': u'spawlows', u'name': u'Slawomir Pawlowski', u'email': u'spawlos@gmail.com'}

Message: SERVER-16586 Fix mongoperf crash with MMF and syncDelay

Closes #886

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/e7b514171c2bfbd6029e9cfc5daf3ac2a699e293

Comment by Slawomir Pawlowski [ 18/Dec/14 ]

Yes I have done signed to contributor agreement. And I will be proud when my first pool request will be merged to official code

Comment by Ramon Fernandez Marina [ 18/Dec/14 ]

Thanks for the pull request spawlows. As per the instructions on how to submit a pull request, you'll need to sign the contributor agreement before it can be considered for merging.

If you have done that already then please disregard this message

Comment by Slawomir Pawlowski [ 18/Dec/14 ]

I found this problem in version v2.7.7-pre, but I checked this on master and today this bug still exist.
I use Linux Centos 7 64bit.
I prepared pool request with fix: https://github.com/mongodb/mongo/pull/886

Comment by Ramon Fernandez Marina [ 18/Dec/14 ]

Nevermind – I wasn't seeing any problems on 2.6.6, but I can reproduce the crash on master. Thanks for reporting this spawlows.

Comment by Ramon Fernandez Marina [ 18/Dec/14 ]

Hi spawlows, what version of MongoDB are you using? And on which platform are you seeing the mongoperf crash?

Generated at Thu Feb 08 03:41:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.