diff options
author | Aravinda VK <avishwan@redhat.com> | 2015-10-30 17:06:58 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2015-11-09 01:20:31 -0800 |
commit | 5d1ff7efd6ab3bd29a29922a9ea1e1aaf02544ad (patch) | |
tree | 9f8562986815d80842836d74e4b1cc3bcce24ae6 /geo-replication/syncdaemon/changelogagent.py | |
parent | f68c95a429b44afc0197152a7819d17ce1de734c (diff) |
geo-rep: Kill Geo-rep Worker when Agent process dies
When Changelog agent process dies, Geo-replication fails to detect
and worker will run without respective Changelog agent. Status shows
Active/Passive without any progress.
With this patch, Worker process gets killed whenever Changelog
agent dies.
Change-Id: I30b4cc77f924f7e8174b8bfe415ac17f0b3851b4
Signed-off-by: Aravinda VK <avishwan@redhat.com>
BUG: 1277076
Reviewed-on: http://review.gluster.org/12485
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/changelogagent.py')
-rw-r--r-- | geo-replication/syncdaemon/changelogagent.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/geo-replication/syncdaemon/changelogagent.py b/geo-replication/syncdaemon/changelogagent.py index ad5f69cfb23..731dbd06f57 100644 --- a/geo-replication/syncdaemon/changelogagent.py +++ b/geo-replication/syncdaemon/changelogagent.py @@ -66,8 +66,6 @@ class Changelog(object): class ChangelogAgent(object): def __init__(self, obj, fd_tup): (inf, ouf, rw, ww) = fd_tup.split(',') - os.close(int(rw)) - os.close(int(ww)) repce = RepceServer(obj, int(inf), int(ouf), 1) t = syncdutils.Thread(target=lambda: (repce.service_loop(), syncdutils.finalize())) |