Bug 1241153

Summary: quota: marker accounting can get miscalculated after upgrade to 3.7
Product: [Community] GlusterFS Reporter: Vijaikumar Mallikarjuna <vmallika>
Component: quotaAssignee: Vijaikumar Mallikarjuna <vmallika>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, gluster-bugs, smohan, storage-qa-internal
Target Milestone: ---Keywords: Regression, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1241150
: 1241831 (view as bug list) Environment:
Last Closed: 2016-06-16 13:22:21 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: 1241150    
Bug Blocks: 1241831    

Comment 1 Anand Avati 2015-07-08 15:13:01 UTC
REVIEW: http://review.gluster.org/11583 (quota/marker: accounting goes wrong after upgrade to 3.7) posted (#1) for review on master by Vijaikumar Mallikarjuna (vmallika)

Comment 2 Anand Avati 2015-07-08 16:57:00 UTC
REVIEW: http://review.gluster.org/11583 (quota/marker: fix spurious failure afr-quota-xattr-mdata-heal.t) posted (#3) for review on master by Vijaikumar Mallikarjuna (vmallika)

Comment 3 Anand Avati 2015-07-10 07:01:28 UTC
REVIEW: http://review.gluster.org/11583 (quota/marker: fix spurious failure afr-quota-xattr-mdata-heal.t) posted (#4) for review on master by Vijaikumar Mallikarjuna (vmallika)

Comment 4 Anand Avati 2015-07-10 07:07:35 UTC
REVIEW: http://review.gluster.org/11583 (quota/marker: fix spurious failure afr-quota-xattr-mdata-heal.t) posted (#5) for review on master by Vijaikumar Mallikarjuna (vmallika)

Comment 5 Vijaikumar Mallikarjuna 2015-07-10 07:08:41 UTC
During quota-update process if inode info is present in size-xattr and
missing in contri-xattrs, then in function '_mq_get_metadata', we set
contri-size as zero (on error -2, which means usage info present, but inode info missing).
With this we are calculating wrong delta and updating the same.

Comment 6 Anand Avati 2015-07-10 08:20:52 UTC
COMMIT: http://review.gluster.org/11583 committed in master by Raghavendra G (rgowdapp) 
------
commit c2cd3aeb0d88117f0929a733e9b05aa3e4d392ac
Author: vmallika <vmallika>
Date:   Wed Jul 8 22:22:50 2015 +0530

    quota/marker: fix spurious failure afr-quota-xattr-mdata-heal.t
    
    During quota-update process if inode info is present in size-xattr and
    missing in contri-xattrs, then in function '_mq_get_metadata', we set
    contri-size as zero (on error -2, which means usage info present, but inode info missing).
    With this we are calculating wrong delta and updating the same.
    
    With this patch we are ignoring errors if inode info in xattrs are missing
    
    Change-Id: I7940a0e299b8bb425b5b43746b1f13f775c7fb92
    BUG: 1241153
    Signed-off-by: vmallika <vmallika>
    Reviewed-on: http://review.gluster.org/11583
    Reviewed-by: Raghavendra G <rgowdapp>
    Tested-by: Raghavendra G <rgowdapp>

Comment 7 Nagaprasad Sathyanarayana 2015-10-25 14:53:38 UTC
Fix for this BZ is already present in a GlusterFS release. You can find clone of this BZ, fixed in a GlusterFS release and closed. Hence closing this mainline BZ as well.

Comment 8 Niels de Vos 2016-06-16 13:22:21 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.0, please open a new bug report.

glusterfs-3.8.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2016/06/glusterfs-3-8-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user