[Bugs] [Bug 1218570] New: `gluster volume heal <vol-name> split-brain' tries to heal even with insufficient arguments

bugzilla at redhat.com bugzilla at redhat.com
Tue May 5 09:34:15 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1218570

            Bug ID: 1218570
           Summary: `gluster volume heal <vol-name> split-brain' tries to
                    heal even with insufficient arguments
           Product: GlusterFS
           Version: 3.7.0
         Component: replicate
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: ssampat at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
------------------------

See the following command for resolution of split-brains -

# gluster v heal <vol-name> split-brain
Usage: /usr/sbin/glfsheal <VOLNAME> [bigger-file <FILE> | source-brick
<HOSTNAME:BRICKNAME> [<FILE>] | split-brain-info]
Volume heal failed.

Observe that the message displays "Volume heal failed." even though the command
was run with insufficient arguments. This command should have ideally resulted
in a parse error as the choice of brick or file for resolution of split-brain
is not provided. Instead, it tries to heal and fails.

Version-Release number of selected component (if applicable):
--------------------------------------------------------------

glusterfs-3.7.0alpha0-0.17.gited96153.el6.x86_64

How reproducible:
------------------

Always

Steps to Reproduce:
--------------------

1. Run the command below and observe the message displayed -

# gluster v heal <vol-name> split-brain

Actual results:
-----------------

glusterfs tries to heal the file even with insufficient arguments whereas
ideally this should have resulted in a parse error.

Expected results:
------------------

Heal should not be attempted if arguments provided are incorrect or
insufficient.

Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list