Bug 458890

Summary: MogileFS looses files frequently
Product: [Fedora] Fedora EPEL Reporter: Clint Goudie <clint>
Component: perl-MogileFS-ServerAssignee: Ruben Kerkhof <ruben>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: medium    
Version: el5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: perl-mogilefs-server-2_17-6_el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-13 15:18:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Clint Goudie 2008-08-12 22:46:13 UTC
Description of problem:

Due to a problem in the tempfile handling, mogilefs occasionally 
 looses file data after a while.

Dormando from the mogilefs list has checked in a patch to address this issue: 

http://groups.google.com/group/mogile/browse_thread/thread/2eee02f6c64bf16f/8f6dfe269c21779b

Please roll this patch into the EPEL el5 RPM. It's not currently safe to use the mogilefs in the yum repo. (I imagine this is also true of the FC9 rpms)

Version-Release number of selected component (if applicable):
mogilefsd-2.17-5.el5

How reproducible:
It is difficult to reproduce, but has happened to our system frequently. Here are three threads that have explored the problem:

Specifically Cent5 with EPEL:
http://groups.google.com/group/mogile/browse_thread/thread/126b535b895fc4f8

Additional bug reports:
http://groups.google.com/group/mogile/browse_thread/thread/c737e84feea148e2/3ebdf130e57f12bb

http://lists.danga.com/pipermail/mogilefs/2008-June/001728.html


Steps to Reproduce:
To simulate the problem, you can manually insert an entry into tempfile like so:
INSERT INTO tempfile (fid,dmid,dkey,classid,devids,createtime) VALUES ('41','1','238','1','1','1');
with the fid and dkey values matching a file in your mogilefs store.
  
Actual results:
The files are deleted even if valid.

Expected results:
The files should not be deleted. (As discussed on the mogile lists)

Comment 1 Ruben Kerkhof 2008-08-13 15:18:30 UTC
Thanks,

Packages have just been build, they will be pushed with the next EPEL update