kragniz / kragniz/python-etcd3

leader ID None

Open
#111 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
450
Forks
194
PR merge metrics
No merged PRs in 30d

Description

python-etcd3 version 0.5.2
client.py

336 for m in self.members:
337 if m.id == status_response.leader:
338 leader = m
339 else:
340 # raise exception?
341 leader = None

leader maybe return None in most cases

Contributor guide

Open the contributing guide

Research direction

Start in client.py around lines 336-341, where members are compared with status_response.leader and leader may be reset to None. Reproduce the leader lookup with the reported python-etcd3 0.5.2 behavior and verify that a matching member is retained instead of becoming None.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.