diff options
author | Dana Powers <dana.powers@gmail.com> | 2019-03-06 19:11:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 19:11:23 -0800 |
commit | 7a99013668b798aaa0acffcf382a7e48e7bd41c1 (patch) | |
tree | 1a6815529211d0f9f99ae05f4bc93dddcbd00baf /kafka/coordinator/base.py | |
parent | 37699be51f868bd736e0fd595f2afc4c03b00ca4 (diff) | |
download | kafka-python-7a99013668b798aaa0acffcf382a7e48e7bd41c1.tar.gz |
Do not require client lock for read-only operations (#1730)
In an effort to reduce the surface area of lock coordination, and thereby hopefully reduce lock contention, I think we can remove locking from the read-only KafkaClient methods: connected, is_disconnected, in_flight_request_count, and least_loaded_node . Given that the read data could change after the lock is released but before the caller uses it, the value of acquiring a lock here does not seem high to me.
Diffstat (limited to 'kafka/coordinator/base.py')
0 files changed, 0 insertions, 0 deletions