Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid FD spike after retrying KafkaAdminClient
A caller might call kafka.KafkaAdminClient repeatedly and handle kafka.errors.NoBrokersAvailable if the broker is not available. However, each retry will cause 3 extra FD being used. Depends on how long the caller wait before retry, the FD usage can reach 300~700 before Python garbage collector collecting those FD. This commit close those FD early.
- Loading branch information