[Bugs] [Bug 1202292] New: quota: 'Usage crossed soft limit' not generated in the log

bugzilla at redhat.com bugzilla at redhat.com
Mon Mar 16 10:25:51 UTC 2015


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

            Bug ID: 1202292
           Summary: quota: 'Usage crossed soft limit' not generated in the
                    log
           Product: GlusterFS
           Version: mainline
         Component: quota
          Assignee: bugs at gluster.org
          Reporter: vmallika at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Sometimes Test-18/20 fails from: ./tests/bugs/quota/bug-1087198.t

Test-18

TEST grep -e "\"Usage crossed soft limit:.*used by /$QUOTA_LIMIT_DIR\"" --
$BRICK_LOG_DIR/*

Test-20

TEST grep -e "\"Usage crossed soft limit:.*used by /\"" -- $BRICK_LOG_DIR/*


Problem is. Consider below scenario in the quota xlator.

T1 - write with delta1 bytes on fd1
     check_limit sees that delta1 bytes is not exceeding soft limit
T2 - write with delta2 bytes on fd1
     check_limit sees that delta2 bytes is not exceeding soft limit
T3 - delta1 and delta2 bytes are written to the disk.

Here delta1 and delta2 are checked separately and do not exceed
limit, but they together exceed the limit which is not checked.

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