summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.h
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2020-06-26 12:10:31 +0530
committerMOHIT AGRAWAL <moagrawa@redhat.com>2020-07-02 05:09:36 +0000
commitbf30eb137772e98b86579293921856e837011c2b (patch)
tree3e81379f397ccca03e9e7d3ad4186c318b177ab4 /xlators/mgmt/glusterd/src/glusterd-utils.h
parent906e208c594f81e660db1a568a7afe010d4a3ee9 (diff)
glusterd: rebalance status displays stats as 0 after reboot
problem: while the rebalance is in progress, if a node is rebooted rebalance v status shows the stats of this node as 0 once the node is back. Reason: when the node is rebooted, once it is back glusterd_volume_defrag_restart() starts the rebalance and creates the rpc. but due to some race, rebalance process is sending disconnect event, so rpc object is getting destroyed. As the rpc object is null, request for fetching the latest stats is not sent to rebalance process. and stats are shows as default values which is 0. Solution: When the rpc object null, we should create the rpc if the rebalance process is up. so that request can be sent to rebalance process using the rpc. fixes: #1339 Change-Id: I1c7533fedd17dcaffc0f7a5a918c87356133a81c Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h')
0 files changed, 0 insertions, 0 deletions