From 0a367898a0251f10c9d4468cb9bf4512edef2a45 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 12 Mar 2020 13:22:12 -0400 Subject: [PATCH] Don't trigger aggregator fail if fine --- node-daemon/pvcnoded/NodeInstance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/node-daemon/pvcnoded/NodeInstance.py b/node-daemon/pvcnoded/NodeInstance.py index fdbcc7a5..04be43e9 100644 --- a/node-daemon/pvcnoded/NodeInstance.py +++ b/node-daemon/pvcnoded/NodeInstance.py @@ -455,6 +455,7 @@ class NodeInstance(object): # Handle our current Patroni leader being us if stdout and stdout.split('\n')[-1].split() == ["Error:", "Switchover", "target", "and", "source", "are", "the", "same."]: self.logger.out('Failed to switch Patroni leader to ourselves; this is fine\n{}'.format(stdout), state='w') + patroni_failed = False break # Handle a failed switchover elif stdout and (stdout.split('\n')[-1].split()[:2] == ["Switchover", "failed,"] or stdout.strip().split('\n')[-1].split()[:1] == ["Error"]):