diff options
author | Kaushal M <kaushal@redhat.com> | 2013-12-17 16:09:02 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-12-18 22:18:44 -0800 |
commit | 30bdde315e01d4d71cca121f0cba55b7ae82dd1b (patch) | |
tree | 800288f1c1aa283cfaac678cd105cb4067eace2c /Makefile.am | |
parent | 94915bc1b3b487ddb6d11412493877c9bd6d101b (diff) |
glusterd: Fix stopping of stale rebalance processes
Trying to stop rebalance process via RPC using the GD_SYNCOP macro,
could lead to glusterd crashing. In case of an implicit volume update,
which happens when a peer comes back up, the stop function would be
called in the epoll thread. This would lead to glusterd crashing as the
epoll thread doesn't have synctasks for the GD_SYNCOP macro to make use
of.
Instead of using the RPC method, we now terminate the rebalance process
by kill(). The rebalance process has been designed to be resistant to
interruption, so this will not lead to any data corruption.
Also, when checking for stale rebalance task, make sure that the old
task-id is not null.
Change-Id: I54dd93803954ee55316cc58b5877f38d1ebc40b9
BUG: 1044327
Signed-off-by: Kaushal M <kaushal@redhat.com>
Reviewed-on: http://review.gluster.org/6531
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions