Bug 1311178

Summary: Tier: Actual files are not demoted and keep on trying to demoted deleted files
Product: [Community] GlusterFS Reporter: hari gowtham <hgowtham>
Component: tieringAssignee: hari gowtham <hgowtham>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs, dlambrig, nchilaka, rmekala
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: tier-migration
Fixed In Version: glusterfs-3.8rc2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1296908
: 1317366 (view as bug list) Environment:
Last Closed: 2016-06-16 13:58:25 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: 1296908    
Bug Blocks: 1317366    

Comment 1 Vijay Bellur 2016-02-23 14:48:10 UTC
REVIEW: http://review.gluster.org/13501 (Tier: Avoiding stale entries from causing demotion to stop) posted (#1) for review on master by hari gowtham (hari.gowtham005)

Comment 2 Vijay Bellur 2016-02-23 15:22:57 UTC
REVIEW: http://review.gluster.org/13501 (Tier: Avoiding stale entries from causing demotion to stop) posted (#2) for review on master by hari gowtham (hari.gowtham005)

Comment 3 Vijay Bellur 2016-02-24 06:49:59 UTC
REVIEW: http://review.gluster.org/13501 (Tier: Avoiding stale entries from causing demotion to stop) posted (#3) for review on master by hari gowtham (hari.gowtham005)

Comment 4 Vijay Bellur 2016-03-01 13:01:04 UTC
REVIEW: http://review.gluster.org/13501 (Tier: Avoiding stale entries from causing demotion to stop) posted (#4) for review on master by hari gowtham (hari.gowtham005)

Comment 5 Vijay Bellur 2016-03-03 06:45:00 UTC
REVIEW: http://review.gluster.org/13501 (Tier: Avoiding stale entries from causing demotion to stop) posted (#5) for review on master by hari gowtham (hari.gowtham005)

Comment 6 Vijay Bellur 2016-03-04 05:56:19 UTC
REVIEW: http://review.gluster.org/13501 (Tier: Avoiding stale entries from causing demotion to stop) posted (#6) for review on master by hari gowtham (hari.gowtham005)

Comment 7 Vijay Bellur 2016-03-10 03:53:06 UTC
REVIEW: http://review.gluster.org/13501 (Tier: Avoiding stale entries from causing demotion to stop) posted (#7) for review on master by hari gowtham (hari.gowtham005)

Comment 8 Vijay Bellur 2016-03-14 06:05:48 UTC
COMMIT: http://review.gluster.org/13501 committed in master by Dan Lambright (dlambrig) 
------
commit d9b5fef0333e63db9d3b5077968254e3ea9d2af4
Author: hari gowtham <hgowtham>
Date:   Tue Feb 23 20:09:52 2016 +0530

    Tier: Avoiding stale entries from causing demotion to stop
    
    When the parent GFID is a stale entry, the lookup on this parent
    fails and this in turn fails the demotion process.
    
    This patch will make the stale entry error to be skipped.
    
    Situation for pargfid to be stale:
    Consider a folder from a tar file. Once the tar file is untared
    the files in the tar-file will start to demote.
    when the demotion is under progress, if we tend to delete
    the actual folder, then the files under it which are
    undergoing demotion will do a lookup on the parent which was
    deleted and become stale entry. This stale entry fails the
    Lookup and this will fail the demotion of the other files(not from
    tar) that are supposed to be demoted.
    
    Change-Id: I3d47c32c4077526d477a25912b0135bab98b23fc
    BUG: 1311178
    Signed-off-by: hari gowtham <hgowtham>
    Reviewed-on: http://review.gluster.org/13501
    Tested-by: hari gowtham <hari.gowtham005>
    Smoke: Gluster Build System <jenkins.com>
    CentOS-regression: Gluster Build System <jenkins.com>
    Reviewed-by: Dan Lambright <dlambrig>
    NetBSD-regression: NetBSD Build System <jenkins.org>

Comment 9 Niels de Vos 2016-06-16 13:58:25 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