Bug 1047331 - DHT : directory selfheal is not creating extended attribute trusted.glusterfs.dht after creating directory
Summary: DHT : directory selfheal is not creating extended attribute trusted.glusterfs...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: distribute
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Vijaikumar Mallikarjuna
QA Contact:
URL:
Whiteboard:
Depends On: 1005663
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-30 12:39 UTC by Vijaikumar Mallikarjuna
Modified: 2016-05-11 22:47 UTC (History)
11 users (show)

Fixed In Version: glusterfs-3.6.0beta1
Clone Of: 1005663
Environment:
Last Closed: 2014-11-11 08:26:14 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Comment 1 Anand Avati 2013-12-30 12:40:33 UTC
REVIEW: http://review.gluster.org/6618 (dht: Ignore directory with missing xattrs, which have err == 0, and start == stop) posted (#1) for review on master by Vijaikumar Mallikarjuna (vmallika)

Comment 2 Vijaikumar Mallikarjuna 2013-12-30 12:50:36 UTC
In Anshi release, xattrs was written with 0-0% hash range when there is no layout for the directory.

Current behavior is, we ignore the directories when the layout is absent and do not write xattrs. 
This change is introduced by the patch: http://review.gluster.org/4668/

Logging for missed layout need to be fixed when err == 0, and start == stop.

Comment 3 Anand Avati 2014-01-16 01:20:23 UTC
COMMIT: http://review.gluster.org/6618 committed in master by Anand Avati (avati) 
------
commit dd1f4a480511c4785d004c06dd9c41ba54f05143
Author: Vijaykumar M <vmallika>
Date:   Mon Dec 30 18:06:56 2013 +0530

    dht: Ignore directory with missing xattrs, which have err == 0, and start == stop
    
    From the history (Patch: http://review.gluster.org/4668/)
    
    When subvols-per-directory is < available subvols, then there are layouts
    which are not populated. This leads to incorrect identification of holes or
    overlaps. We need to ignore layouts, which have err == 0, and start == stop.
    In the current scenario (start == stop == 0).
    
    Additionally, in layout-merge, treat missing xattrs as err = 0. In case of
    missing layouts, anomalies will reset them.
    
    For any other valid subvoles, err != 0 in case of layouts being zeroed out.
    Also reverted back dht_selfheal_dir_xattr, which does layout calculation only
    on subvols which have errors.
    
    Change-Id: Idb72a869f1a6f103046bb7e6fe0019f6ac853fd4
    BUG: 1047331
    Signed-off-by: Vijaykumar M <vmallika>
    Reviewed-on: http://review.gluster.org/6618
    Reviewed-by: Krishnan Parthasarathi <kparthas>
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Shyamsundar Ranganathan <srangana>
    Reviewed-by: Anand Avati <avati>

Comment 4 Niels de Vos 2014-09-22 12:34:13 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 5 Niels de Vos 2014-11-11 08:26:14 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


Note You need to log in before you can comment on or make changes to this bug.