[Bugs] [Bug 1278689] New: quota/marker: quota accouting goes wrong with renaming file when IO in progress
bugzilla at redhat.com
bugzilla at redhat.com
Fri Nov 6 07:44:52 UTC 2015
https://bugzilla.redhat.com/show_bug.cgi?id=1278689
Bug ID: 1278689
Summary: quota/marker: quota accouting goes wrong with renaming
file when IO in progress
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
Testcase './tests/bugs/quota/bug-1235182.t' fails spuriously.
for in in {1..200}; do prove -vf ./tests/bugs/quota/bug-1235182.t; if [ $? -ne
0 ]; then read x; fi; done
....
ok 156
ok 157
ok 158
ok 159
ok 160
ok 161
ok 162
Wait for process with pid 31499 to complete
Process with pid 31499 finished
ok 163
not ok 164 Got "129.8MB" instead of "100.0MB"
FAILED COMMAND: 100.0MB quotausage /
Path Hard-limit Soft-limit Used
Available Soft-limit exceeded? Hard-limit exceeded?
-------------------------------------------------------------------------------------------------------------------------------
/
Below is the xattrs in the backend
root at rh1:~/workspace/git/glusterfs # ll /d/backends/patchy/8/
total 0
root at rh1:~/workspace/git/glusterfs # getfattr /d/backends/patchy/8/
getfattr: Removing leading '/' from absolute path names
# file: d/backends/patchy/8/
security.selinux=0x756e636f6e66696e65645f753a6f626a6563745f723a64656661756c745f743a733000
trusted.gfid=0x414248e7312a4ac5a13631ceaa99f171
trusted.glusterfs.dht=0x000000010000000000000000ffffffff
trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri.1=0x0000000001dc100000000000000000010000000000000001
trusted.glusterfs.quota.dirty=0x3000
trusted.glusterfs.quota.size.1=0x0000000001dc100000000000000000010000000000000001
root at rh1:~/workspace/git/glusterfs # ll /d/backends/patchy/51/f51
-rw-------. 2 root root 104857600 Nov 6 12:37 /d/backends/patchy/51/f51
root at rh1:~/workspace/git/glusterfs # getfattr /d/backends/patchy/51/f51
getfattr: Removing leading '/' from absolute path names
# file: d/backends/patchy/51/f51
security.selinux=0x756e636f6e66696e65645f753a6f626a6563745f723a64656661756c745f743a733000
trusted.bit-rot.version=0x0200000000000000563c51a6000aea10
trusted.gfid=0x3df73a6c8cb942e98facf3c528fe5fb1
trusted.glusterfs.quota.28526e69-a923-4df9-9cbe-69ffd0bcc5a0.contri.1=0x00000000064010000000000000000001
trusted.glusterfs.quota.414248e7-312a-4ac5-a136-31ceaa99f171.contri.1=0x0000000001dc10000000000000000001
trusted.pgfid.28526e69-a923-4df9-9cbe-69ffd0bcc5a0=0x00000001
----------------------
After when file is moved out from /8/f1, quota size in parent /8 has not been
reduced. I suspect somehow 'mq_reduce_parent_size_txn' has aborted without
updating the parent size
--
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