[Bugs] [Bug 1513692] New: io-stats appends now instead of overwriting which floods filesystem with logs

bugzilla at redhat.com bugzilla at redhat.com
Wed Nov 15 19:11:02 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1513692

            Bug ID: 1513692
           Summary: io-stats appends now instead of overwriting which
                    floods filesystem with logs
           Product: GlusterFS
           Version: 3.12
         Component: glusterd
          Severity: urgent
          Assignee: bugs at gluster.org
          Reporter: xfactor973 at gmail.com
                CC: bugs at gluster.org



Description of problem:
The io-stats xlator used to have a behavior where it constantly overwrites the
files every x seconds.  This behavior has changed in 3.12.x to now append to
the file.  After enabling the xlator the filesystem on my cluster filled up
almost immediately and crashed.  

Version-Release number of selected component (if applicable):
3.12.0 and newer

How reproducible:
Always.  

Steps to Reproduce:
1. gluster volume set gv0 diagnostics.latency-measurement on
2. gluster volume set gv0 diagnostics.count-fop-hits on
3. gluster volume set gv0 diagnostics.stats-dump-interval 10
4. gluster volume set gv0 diagnostics.fop-sample-interval 5

Actual results:
Stats files in /var/lib/glusterd/stats fill up at an alarming rate which fills
up the disk and crashes gluster.  I think gluster started to back up after
awhile because I couldn't delete the files fast enough.  

Expected results:
I expected to see files in /var/lib/glusterd/stats/ that don't change in size
and can be cat'd to find the latest stats.  

Additional info:
This is the patch that changed the behavior:
https://github.com/gluster/glusterfs/commit/fc73ae5f81ef5926e3dc2311db116250d0f2a321.
 Could you please revert it and backport it to the 3.12 series?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list