Bug 761907 (GLUSTER-175) - Statistics for number of open files in Posix incorrect
Summary: Statistics for number of open files in Posix incorrect
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-175
Product: GlusterFS
Classification: Community
Component: posix
Version: 2.0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Vikas Gorur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-30 07:17 UTC by Vijay Bellur
Modified: 2009-09-08 10:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTP
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.