Description of problem: ------------------------ `gluster volume heal <vol-name> split-brain' command today has 2 arguments: bigger-file and source-brick. In case of a directory entry split-brain, the argument bigger-file is not meaningful and should not be accepted. The user needs to be notified that this option cannot be used with directories. Currently, this argument causes entry split-brain to be healed by conservative merge, without any complaints. For the source-brick argument, the user should be notified that it is conservative merge that will be performed for the directory in question and the heal should happen. Version-Release number of selected component (if applicable): -------------------------------------------------------------- glusterfs-3.7.1-3.el6rhs.x86_64 How reproducible: ------------------ Always Steps to Reproduce: -------------------- 1. On a directory in entry split-brain, run the `gluster volume heal <vol-name> split-brain' command with each of the 2 arguments. Actual results: ---------------- Heal happens in both cases without notifying the user, as explained in description. Expected results: ------------------ User should be notified in case the bigger-file argument is used to heal directory entry split-brain, that this is not applicable to directories. In case of source-brick argument, perform conservative merge and notify the user accordingly. Additional info:
Patch posted upstream - http://review.gluster.org/11937/
Verified as fixed in glusterfs-3.7.1-14.el7rhgs.x86_64 - Tested with a volume having a directory in entry split-brain - # gluster v heal test info Brick dhcp37-135.lab.eng.blr.redhat.com:/rhs/brick3/b1/ /dir - Is in split-brain /dir/2 Number of entries: 2 Brick dhcp37-70.lab.eng.blr.redhat.com:/rhs/brick3/b1/ /dir - Is in split-brain /dir/1 Number of entries: 2 Using bigger-file option - # gluster volume heal test split-brain bigger-file /dir 'bigger-file' not a valid option for directories. Volume heal failed. Using source-brick option - # gluster volume heal test split-brain source-brick 10.70.37.135:/rhs/brick3/b1 /dir 'source-brick' option used on a directory (/dir). Performing conservative merge. Healed /dir. On the client after heal - # ls dir/ 1 2
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1845.html