Bug 1243797

Summary: quota/marker: dir count in inode quota is not atomic
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vijaikumar Mallikarjuna <vmallika>
Component: quotaAssignee: Vijaikumar Mallikarjuna <vmallika>
Status: CLOSED ERRATA QA Contact: Anil Shah <ashah>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: annair, asrivast, bmohanra, byarlaga, mselvaga, rgowdapp, rhs-bugs, sankarshan, smohan, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.5-5 Doc Type: Bug Fix
Doc Text:
When quota is enabled on a pre-existing data, quota-crawl process starts healing the xattrs. During this process when a write operation is performed when healing is not complete, directory count can be missed on a directory. This causes an error in the 'quota list-objects'. With this release, the issue is fixed.
Story Points: ---
Clone Of:
: 1243798 (view as bug list) Environment:
Last Closed: 2016-03-01 05:29:45 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: 1243798, 1260783, 1270769    

Description Vijaikumar Mallikarjuna 2015-07-16 10:46:08 UTC
Consider below scenario:

Quota enabled on pre-existing data
Now quota-crawl process will start healing xattrs
Now if write is performed where healing is not complete, there is a possibility that 'update txn' is started before 'create xattr txn', in this case dir count can be missed on a dir where quota size xattr is not yet created.

Comment 4 Vijaikumar Mallikarjuna 2015-08-18 06:46:45 UTC
Patch submitted upstream: http://review.gluster.org/#/c/11694/

Comment 8 Vijaikumar Mallikarjuna 2015-10-15 10:08:22 UTC
upstream patch: http://review.gluster.org/#/c/11694
release-3.7 patch: http://review.gluster.org/#/c/12341/

Comment 10 Anil Shah 2015-12-31 09:49:23 UTC
Since this was internal behaviour change. Executed Automation test cases against this bug to verify on build glusterfs-3.7.5-13.el7rhgs.x86_64.
https://beaker.engineering.redhat.com/jobs/1180905

Bug verified on build glusterfs-3.7.5-13.el7rhgs.x86_64.

Comment 12 errata-xmlrpc 2016-03-01 05:29:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0193.html