etcd: if etcd is not working, acquire() raises an exception

Bug #1604906 reported by John Schwarz on 2016-07-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tooz
Medium
Unassigned

Bug Description

See [1]: in case self.client.put() raises RequestException, and if watch == None, then the code doesn't break - it will proceed to line 123, where UnboundLocalError is raised from the code.

Reproduction steps: stop etcd, try to acquire lock.

[1]: https://github.com/openstack/tooz/blob/5149c402db09d5997b6fc086dbd7d3b1d12815c8/tooz/drivers/etcd.py#L112

Ben Nemec (bnemec) on 2018-04-03
Changed in python-tooz:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers