[Bugs] [Bug 1368312] Value of `replica.split-brain-status' attribute of a directory in metadata split-brain in a dist-rep volume reads that it is not in split-brain

bugzilla at redhat.com bugzilla at redhat.com
Mon Sep 12 07:38:33 UTC 2016


--- Comment #10 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: http://review.gluster.org/15201 committed in master by Raghavendra G
(rgowdapp at redhat.com) 
commit c4e9ec653c946002ab6d4c71ee8e6df056438a04
Author: Mohit Agrawal <moagrawa at redhat.com>
Date:   Fri Aug 19 10:33:50 2016 +0530

    dht: "replica.split-brain-status" attribute value is not correct

    Problem: In a distributed-replicate volume attribute
             "replica.split-brain-status" value does not display split-brain
               condition though directory is in split-brain.
             If directory is in split brain on mutiple replica-pairs
             it does not show full list of replica pairs.

    Solution: Update the dht_aggregate code to aggregate the xattr
              value in this specific condition.

    Fix:      1) function getChoices returns the choices from split-brain
                 status string.
              2) function add_opt adding the choices to local buffer to
                 store in dictionary
              3) For the key "replica.split-brain-status" function
                 call dht_aggregate_split_brain_xattr to prepare the list.

    Test:     To verify the patch followed below steps
              1) Create a distributed replica volume and create mount point
              2) Stop heal daemon
              3) Touch file and directories on mount point
                 mkdir test{1..5};touch tmp{1..5}
              4) Down brick process on one of the replica set
                 pkill -9 glusterfsd
              5) Change permission of dir on mount point
                 chmod 755 test{1..5}
              6) Restart brick process on node with force option
              7) kill brick process on other node in same replica set
              8) Change permission of dir again on mount point
                 chmod 766 test{1..5}
              9) Reexecute same step from 4-9 on other replica set also
              10) After check heal status on server it will show dir's are
                  in split brain on all replica sets
              11) After check the replica.split-brain-status attr on mount
                  point it will show wrong status of split brain.
              12) After apply the patch the attribute shows correct value.

    BUG: 1368312
    Change-Id: Icdfd72005a4aa82337c342762775a3d1761bbe4a
    Signed-off-by: Mohit Agrawal <moagrawa at redhat.com>
    Reviewed-on: http://review.gluster.org/15201
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>

You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=qc0TwCQV77&a=cc_unsubscribe

More information about the Bugs mailing list