[Bugs] [Bug 1161102] self heal info logs are filled up with messages reporting split-brain

bugzilla at redhat.com bugzilla at redhat.com
Fri Nov 7 10:54:37 UTC 2014


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



--- Comment #2 from Anuradha <atalur at redhat.com> ---
Explanation of patch sent for fix -

Currently, gluster volume heal <VOLNAME> info command results in
logging split-brain messages(when split-brain is detected).

Shruthi raised this bug : https://bugzilla.redhat.com/show_bug.cgi?id=1122492,
reporting excessive logging.
She had run heal info command repeatedly with a sleep of 1 minute in between
and the size of log file grew to 9GB.

The log message that repeated was as follows-
afr-self-heal-common.c:234:afr_sh_print_split_brain_log] 0-vol1-replicate-0:
Unable to self-heal contents of '33f5c4c3-eef6-47b5-bb67-fdf5407b3d37'
(possible split-brain). Please delete the file from all but the preferred
subvolume.- Pending matrix:  [ [ 0 2 ] [ 5 0 ] ]

My patch tries to reduce these split-brain log messages.
When heal info command is run, this log-message won't be reported anymore.
Instead, a message indicating split-brain will be displayed in the output of
heal info command itself.

Sample output -
Brick <hostname:brickpath>
<gfid:304c2117-6907-4b8c-b0de-7c83535a9d06> - Is in split-brain
Number of entries: 1

Brick <hostname:brickpath>
<gfid:304c2117-6907-4b8c-b0de-7c83535a9d06> - Is in split-brain
Number of entries: 1

Note that the patch suppresses split-brain log messages only for
heal info command. This message will still be logged by other means.

-- 
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=LiB2QsNLmh&a=cc_unsubscribe


More information about the Bugs mailing list