diff options
author | Kotresh HR <khiremat@redhat.com> | 2014-10-03 17:35:47 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2014-11-12 04:28:02 -0800 |
commit | beedf68266f19ac77b77f2ec5f9533f3e63c159f (patch) | |
tree | 69db2ab739e9175aedc140af6ad7c1294645d2d5 /geo-replication/syncdaemon/master.py | |
parent | 1ffdf112f707a13c9fd74bbf17f99d28f84f0f0c (diff) |
glusterd/geo-rep: Fix race in updating status file
When geo-rep is in paused state and a node in a cluster
is rebooted, the geo-rep status goes to "faulty (Paused)"
and no worker processes are started on that node yet. In
this state, when geo-rep is resumed, there is a race in
updating status file between glusterd and gsyncd itself
as geo-rep is resumed first and then status is updated.
glusterd tries to update to previous state and gsyncd
tries to update it to "Initializing...(Paused)" on
restart as it was paused previously. If gsyncd on restart
wins, the state is always paused but the process is not
acutally paused. So the solution is glusterd to update
the status file and then resume.
BUG: 1159195
Change-Id: I4c06f42226db98f5a3c49b90f31ecf6cf2b6d0cb
Reviewed-on: http://review.gluster.org/8911
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Reviewed-on: http://review.gluster.org/9021
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Tested-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/master.py')
0 files changed, 0 insertions, 0 deletions