Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1092433

Summary: DHT + Snapshot :- If snapshot is taken when Directory is created only on hashed sub-vol; On restoring that snapshot Directory is not listed on mount point and lookup on parent is not healing
Product: [Community] GlusterFS Reporter: Susant Kumar Palai <spalai>
Component: distributeAssignee: Susant Kumar Palai <spalai>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: pre-releaseCC: bugs, gluster-bugs, nsathyan, racpatel, rgowdapp
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.6.0beta1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1090986
: 1138382 1139103 1139986 (view as bug list) Environment:
Last Closed: 2014-11-11 08:31:23 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: 1090986    
Bug Blocks: 1139103, 1139986    

Comment 1 Anand Avati 2014-04-29 11:15:51 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#3) for review on master by susant palai (spalai)

Comment 2 Anand Avati 2014-05-15 07:45:01 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#4) for review on master by susant palai (spalai)

Comment 3 Anand Avati 2014-06-05 04:02:19 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#5) for review on master by susant palai (spalai)

Comment 4 Anand Avati 2014-06-05 08:52:14 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#6) for review on master by susant palai (spalai)

Comment 5 Anand Avati 2014-06-05 09:24:42 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#7) for review on master by susant palai (spalai)

Comment 6 Anand Avati 2014-06-05 12:28:30 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#8) for review on master by susant palai (spalai)

Comment 7 Anand Avati 2014-06-06 07:35:48 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#9) for review on master by susant palai (spalai)

Comment 8 Anand Avati 2014-06-06 08:19:02 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#10) for review on master by susant palai (spalai)

Comment 9 Anand Avati 2014-06-06 08:40:00 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#11) for review on master by susant palai (spalai)

Comment 10 Anand Avati 2014-06-11 09:55:56 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#12) for review on master by susant palai (spalai)

Comment 11 Anand Avati 2014-06-11 11:01:29 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#13) for review on master by susant palai (spalai)

Comment 12 Anand Avati 2014-06-11 12:38:48 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#14) for review on master by susant palai (spalai)

Comment 13 Anand Avati 2014-06-16 05:47:14 UTC
REVIEW: http://review.gluster.org/7599 (DHT/readdirp: Directory not shown/healed on mount point if exists               on single brick(non first up subvolume).) posted (#15) for review on master by Raghavendra G (rgowdapp)

Comment 14 Anand Avati 2014-06-16 12:14:55 UTC
COMMIT: http://review.gluster.org/7599 committed in master by Vijay Bellur (vbellur) 
------
commit b8f3aab95f01ac7d590a5ba490e890d9cf8c2e50
Author: Susant Palai <spalai>
Date:   Tue May 13 12:56:17 2014 -0400

    DHT/readdirp: Directory not shown/healed on mount point if exists
                  on single brick(non first up subvolume).
    
    Problem: If snapshot is taken, when mkdir has succeeded only on
    hashed_subvolume, then after restoring snapshot the directory
    is not shown on mount point.
    
    Why:    dht_readdirp takes only those directory entries in to
    account, which are present on first_up_subvolume. Hence, if the
    "hashed subvolume" is not same as first_up_subvolume, it wont be listed
    on mount point and also not healed.
    
    Solution:
    Case 1: (Rebalance not running)If hashed subvolume is NULL or down then
    filter in first_up_subvolume. Other wise the corresponding hashed subvolume
    will take care of the directory entry.
    
    Case 2: If readdirp_optimize option is turned on then read from first_up_subvol
    
    Change-Id: Idaad28f1c9f688dbfb1a8a3ab8b244510c02365e
    BUG: 1092433
    Signed-off-by: Susant Palai <spalai>
    Reviewed-on: http://review.gluster.org/7599
    Reviewed-by: Raghavendra G <rgowdapp>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Vijay Bellur <vbellur>

Comment 15 Niels de Vos 2014-09-22 12:39:19 UTC
A beta release for GlusterFS 3.6.0 has been released. Please verify if the release solves this bug report for you. In case the glusterfs-3.6.0beta1 release does not have a resolution for this issue, leave a comment in this bug and move the status to ASSIGNED. If this release fixes the problem for you, leave a note and change the status to VERIFIED.

Packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update (possibly an "updates-testing" repository) infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-users/2014-September/018836.html
[2] http://supercolony.gluster.org/pipermail/gluster-users/

Comment 16 Niels de Vos 2014-11-11 08:31:23 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.6.1, please reopen this bug report.

glusterfs-3.6.1 has been announced [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://supercolony.gluster.org/pipermail/gluster-users/2014-November/019410.html
[2] http://supercolony.gluster.org/mailman/listinfo/gluster-users