Ran
|
Jobs
1
|
Files
35
|
Run time
2s
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
<a href="https://github.com/wikimedia/PyBal/commit/<a class=hub.com/wikimedia/PyBal/commit/<a class="double-link" href="https://git"><a class=hub.com/wikimedia/PyBal/commit/2677056b1672be00e8aea23408268909a27e0c7c">2677056b1<a href="https://github.com/wikimedia/PyBal/commit/2677056b1672be00e8aea23408268909a27e0c7c"><a href="https://github.com/wikimedia/PyBal/commit/2677056b1672be00e8aea23408268909a27e0c7c">&quot;&gt;etcd: Introduce reconnectTimeout In production, we have observed an issue with pybal losing its connections to etcd shortly after a bunch of unhandled twisted.internet.error.ConnectionLost errors. See https://phabricator.wikimedia.org/P6711 for an example of such situation. In a test environment, we have verified that pybal does not reconnect to etcd in case of etcd restarts. Introduce a 1 second timeout between reconnection attempts to be used in case of lost connections or connection failures and log the reconnection attempts themselves. This fixes the reconnection issue in a testing environment when issuing a systemctl etcd restart as well as when stopping etcd altogher and starting it again after a few seconds. Bug: T169765 Change-Id: I</a><a class="double-link" href="https://github.com/wikimedia/PyBal/commit/<a class="double-link" href="https://github.com/wikimedia/PyBal/commit/0db3a64af405aa11aaf3a215a8d57a8857d48dbd">0db3a64af</a>">0db3a64af</a><a href="https://github.com/wikimedia/PyBal/commit/2677056b1672be00e8aea23408268909a27e0c7c"> (cherry picked from commit </a><a class="double-link" href="https://github.com/wikimedia/PyBal/commit/<a class="double-link" href="https://github.com/wikimedia/PyBal/commit/c917f59f4c37c7b89f15d0fd8b375de028d4a90b">c917f59f4">c917f59f4)
2862 of 3872 relevant lines covered (73.92%)
0.74 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
99.22 |
0.0% | pybal/test/test_monitors.py |
2 |
89.39 |
7.79% | pybal/etcd.py |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 210.1 | 35 |
73.92 |
Travis Job 210.1 |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|