From 3edf926a1bda43879c09694cf3904c214c94c9dc Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 10 Oct 2017 05:54:04 -0400 Subject: geo-rep: Fix status transition The status transition is as below which is wrong. Created->Initializing->Active->Active/Passive->Stopped As soon as the monitor spawns the worker, the state is changed from 'Initializing' to 'Active' and then to 'Active/Passive' based on whether worker gets the lock or not. This is wrong and it should directly tranistion as below. Created->Initializing->Active/Passive->Stopped Change-Id: Ibf5ca5c4fdf168c403c6da01db60b93f0604aae7 BUG: 1500284 Signed-off-by: Kotresh HR --- geo-replication/syncdaemon/monitor.py | 1 - 1 file changed, 1 deletion(-) (limited to 'geo-replication/syncdaemon/monitor.py') diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py index b65f1948050..4da933047c8 100644 --- a/geo-replication/syncdaemon/monitor.py +++ b/geo-replication/syncdaemon/monitor.py @@ -389,7 +389,6 @@ class Monitor(object): nwait(apid) # wait for agent ret = nwait(cpid) if ret is None: - self.status[w[0]['dir']].set_worker_status(self.ST_STABLE) # If worker dies, agent terminates on EOF. # So lets wait for agent first. nwait(apid) -- cgit