Giuseppe Lavagetto has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/363611 )
Change subject: Reset the waitIndex when connection is lost or failed
......................................................................
Reset the waitIndex when connection is lost or failed
Bug: T169893
Change-Id: Ibc3d2459549c986bacb5fc3db95939bd378121b6
---
M pybal/etcd.py
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/debs/pybal
refs/changes/11/363611/1
diff --git a/pybal/etcd.py b/pybal/etcd.py
index 22f7ff5..d452733 100644
--- a/pybal/etcd.py
+++ b/pybal/etcd.py
@@ -136,6 +136,7 @@
def clientConnectionFailed(self, connector, reason):
log.error("client connection failed: reason=%s" % reason,
system="config-etcd")
+ self.waitIndex = None
connector.connect()
def clientConnectionLost(self, connector, reason):
@@ -144,7 +145,7 @@
log.info("client connection closed cleanly", system="config-etcd")
else:
log.error("client connection lost: reason=%s" % reason,
system="config-etcd")
-
+ self.waitIndex = None
connector.connect()
def getMaxModifiedIndex(self, root):
--
To view, visit https://gerrit.wikimedia.org/r/363611
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc3d2459549c986bacb5fc3db95939bd378121b6
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/pybal
Gerrit-Branch: master
Gerrit-Owner: Giuseppe Lavagetto <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits