Bug 761907 (GLUSTER-175)

Summary: Statistics for number of open files in Posix incorrect
Product: [Community] GlusterFS Reporter: Vijay Bellur <vijay>
Component: posixAssignee: Vikas Gorur <vikas>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 2.0.5CC: gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vijay Bellur 2009-07-30 07:17:52 UTC
Running dbench -s 42 leads to incorrect statistics for number of open files in Posix. Have seen this leading to negative values many times.

stats.nr_files = -2 is what I observed in a server after running dbench -s 42 in a setup involving distribute over two nodes.

Comment 1 Vijay Bellur 2009-08-16 12:10:59 UTC
private is being updated in posix without holding any locks. Hence the bug. This needs to be fixed wherever private is being updated in posix xlator.

Comment 2 Anand Avati 2009-09-08 07:22:35 UTC
PATCH: http://patches.gluster.com/patch/1245 in master (storage/posix: Synchronize access to this->private.)