Bug 843748

Summary: Setting lots of quota will make client get blocked.
Product: [Community] GlusterFS Reporter: lbyeason <linbaiye>
Component: quotaAssignee: vpshastry <vshastry>
Status: CLOSED WORKSFORME QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 3.3.0CC: amarts, gluster-bugs, linbaiye, nsathyan
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 848237 (view as bug list) Environment:
Last Closed: 2012-12-21 06:55:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 848237    

Description lbyeason 2012-07-27 09:05:23 UTC
Description of problem:

While client is writting,Setting quota on lots of dirctories will make client get blocked. 
Version-Release number of selected component (if applicable):
3.3.0 & 3.2.6

How reproducible:


Steps to Reproduce:
1.Create a replica volume on server1 and server2.(Number of Bricks: 1 x 2 = 2)
2.Mount volume on client1 and untar kernel to mountpoint.
3.While client is compiling the kernel, set quota on those dirctories which were untared from kernel with value of 100MB each directory.
 
Actual results:
Client will get blocked in a while,not be able to use some commands(eg df, ls "mountpoint").

Expected results:
Compilation will be completed.

Additional info:
Log of brick is full of:
[2012-07-27 14:27:43.610378] W [marker-quota.c:1977:mq_initiate_quota_txn] 0-vol4test-marker: inode ctx get failed, aborting quota txn
[2012-07-27 14:27:43.613482] W [marker-quota.c:1977:mq_initiate_quota_txn] 0-vol4test-marker: inode ctx get failed, aborting quota txn
[2012-07-27 14:27:43.616928] W [marker-quota.c:1977:mq_initiate_quota_txn] 0-vol4test-marker: inode ctx get failed, aborting quota txn
[2012-07-27 14:27:43.619951] W [marker-quota.c:1977:mq_initiate_quota_txn] 0-vol4test-marker: inode ctx get failed, aborting quota txn

Comment 1 vpshastry 2012-12-21 06:55:12 UTC
While compiling kernel, set quota on around 2000 dirs. Still client was safe from crash.