|
|
d1681e |
From 9c31bcd6c4234b6a9e4e04410caf98d2cd3d4946 Mon Sep 17 00:00:00 2001
|
|
|
d1681e |
From: karthik-us <ksubrahm@redhat.com>
|
|
|
d1681e |
Date: Fri, 17 Nov 2017 18:23:23 +0530
|
|
|
d1681e |
Subject: [PATCH 083/128] cluster/afr: Print heal info split-brain output in
|
|
|
d1681e |
stream fashion
|
|
|
d1681e |
|
|
|
d1681e |
Problem:
|
|
|
d1681e |
When we trigger the heal info split-brain command the o/p is not
|
|
|
d1681e |
streamed as it is received, but dumped at the end for all the bricks
|
|
|
d1681e |
together. This gives a perception that the command is hung.
|
|
|
d1681e |
|
|
|
d1681e |
Fix:
|
|
|
d1681e |
When we get a split brain entry while crawling throught the pending
|
|
|
d1681e |
heal entries, flush that immediately so that it prints the output
|
|
|
d1681e |
in a stream fashion and doesn't look like the cli is hung.
|
|
|
d1681e |
|
|
|
d1681e |
Upstream patch: https://review.gluster.org/#/c/18570/
|
|
|
d1681e |
|
|
|
d1681e |
> Change-Id: I7547e86b83202d66616749b8b31d4d0dff0abf07
|
|
|
d1681e |
> BUG: 1506104
|
|
|
d1681e |
> Signed-off-by: karthik-us <ksubrahm@redhat.com>
|
|
|
d1681e |
|
|
|
d1681e |
Change-Id: I7547e86b83202d66616749b8b31d4d0dff0abf07
|
|
|
d1681e |
BUG: 1419438
|
|
|
d1681e |
Signed-off-by: karthik-us <ksubrahm@redhat.com>
|
|
|
d1681e |
Reviewed-on: https://code.engineering.redhat.com/gerrit/123563
|
|
|
d1681e |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
d1681e |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
d1681e |
---
|
|
|
d1681e |
heal/src/glfs-heal.c | 2 ++
|
|
|
d1681e |
1 file changed, 2 insertions(+)
|
|
|
d1681e |
|
|
|
d1681e |
diff --git a/heal/src/glfs-heal.c b/heal/src/glfs-heal.c
|
|
|
d1681e |
index 22c9395..532b6f9 100644
|
|
|
d1681e |
--- a/heal/src/glfs-heal.c
|
|
|
d1681e |
+++ b/heal/src/glfs-heal.c
|
|
|
d1681e |
@@ -120,6 +120,7 @@ void
|
|
|
d1681e |
glfsh_print_hr_spb_status (char *path, uuid_t gfid, char *status)
|
|
|
d1681e |
{
|
|
|
d1681e |
printf ("%s\n", path);
|
|
|
d1681e |
+ fflush (stdout);
|
|
|
d1681e |
return;
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
@@ -133,6 +134,7 @@ void
|
|
|
d1681e |
glfsh_print_hr_heal_status (char *path, uuid_t gfid, char *status)
|
|
|
d1681e |
{
|
|
|
d1681e |
printf ("%s%s\n", path, status);
|
|
|
d1681e |
+ fflush (stdout);
|
|
|
d1681e |
}
|
|
|
d1681e |
|
|
|
d1681e |
#if (HAVE_LIB_XML)
|
|
|
d1681e |
--
|
|
|
d1681e |
1.8.3.1
|
|
|
d1681e |
|