summaryrefslogtreecommitdiff
path: root/test/test_client_async.py
Commit message (Collapse)AuthorAgeFilesLines
* Send socket data via non-blocking IO with send buffer (#1912)Dana Powers2019-09-291-1/+3
|
* Rely on socket selector to detect completed connection attempts (#1909)Dana Powers2019-09-281-1/+1
|
* Reduce client poll timeout when no ifrsDana Powers2019-05-291-0/+12
|
* Remove unused imports (#1808)Jeff Widman2019-05-221-5/+1
|
* Do not call state_change_callback with lock (#1775)Dana Powers2019-04-021-10/+11
|
* Dont treat popped conn.close() as failure in state change callback (#1773)Dana Powers2019-04-011-2/+3
|
* Dont wakeup during maybe_refresh_metadata -- it is only called by poll() (#1769)Dana Powers2019-03-301-2/+2
|
* Retry bootstrapping after backoff when necessary (#1736)Dana Powers2019-03-141-45/+23
| | | | | | | The current client attempts to bootstrap once during initialization, but if it fails there is no second attempt and the client will be inoperable. This can happen, for example, if an entire cluster is down at the time a long-running client starts execution. This commit attempts to fix this by removing the synchronous bootstrapping from `KafkaClient` init, and instead merges bootstrap metadata with the cluster metadata. The Java client uses a similar approach. This allows us to continue falling back to bootstrap data when necessary throughout the life of a long-running consumer or producer. Fix #1670
* Recheck connecting nodes sooner when refreshing metadata (#1737)Dana Powers2019-03-131-1/+1
|
* Do network connections and writes in KafkaClient.poll() (#1729)Dana Powers2019-03-081-5/+4
| | | | | | * Add BrokerConnection.send_pending_requests to support async network sends * Send network requests during KafkaClient.poll() rather than in KafkaClient.send() * Dont acquire lock during KafkaClient.send if node is connected / ready * Move all network connection IO into KafkaClient.poll()
* Don't use `kafka.common` internally1.3.5Jeff Widman2018-06-051-2/+1
| | | | This finishes the split from `kafka.common` to `kafka.errors`/`kafka.structs`.
* Add BrokerConnection.connect_blocking() (#1411)Dana Powers2018-03-091-3/+5
|
* KAFKA-3888 Use background thread to process consumer heartbeats (#1266)Dana Powers2017-12-211-11/+0
|
* Drop unused sleep kwarg to poll (#1177)Dana Powers2017-08-151-17/+16
|
* Timeout idle connections via connections_max_idle_ms (#1068)Dana Powers2017-04-101-2/+36
|
* Avoid multiple connection attempts when refreshing metadata (#1067)Dana Powers2017-04-051-14/+25
|
* Derive all api classes from Request / Response base classes (#1030)Dana Powers2017-03-141-2/+3
|
* Spelling and grammar changes (#923)melissacrawford3962017-01-111-1/+1
|
* Add metadata update to pattern subscribing (#915)Dmitry Lazurkin2016-12-271-2/+26
|
* Instrument metrics in BrokerConnectionDana Powers2016-08-041-0/+2
|
* Move kafka.selectors34 to kafka.vendor.selectors34Dana Powers2016-08-011-1/+1
|
* Add rack to BrokerMetadata - it is always None when using MetadataRequest v0Dana Powers2016-07-161-2/+2
|
* Add api_version config to KafkaClient, deprecate str in favor of tuples (#761)Dana Powers2016-07-161-92/+48
|
* Avoid busy poll during metadata refresh failure with retry_backoff_ms (#733)Dana Powers2016-06-201-2/+100
|
* Fix socket leaks in KafkaClient (#696)Dana Powers2016-05-221-3/+6
| | | | | * Cleanup wakeup socketpair on close to avoid leak in KafkaClient * Cleanup unneeded bootstrap connection to avoid leak in KafkaClient * Dont warn on socket disconnections caused by KafkaClient.close()
* More thorough IPv6 support that uses getaddrinfo to resolve namesJames Brown2016-04-241-7/+7
| | | | Fixes #641
* Use selectors module in KafkaClientselectorsDana Powers2016-04-091-1/+14
|
* Add state_change_callback to bootstrap connectionconn_state_callbackDana Powers2016-04-081-2/+8
|
* Move state logic from KafkaClient._maybe_connect to _conn_state_change as ↵Dana Powers2016-04-081-10/+24
| | | | callback
* Split test_ready to test_is_readyDana Powers2016-04-081-34/+21
|
* Default sleep=True in client.pollDana Powers2016-04-081-4/+4
|
* Add BrokerConnection.disconnected() method; update testsDana Powers2016-04-081-6/+5
|
* Consolidate conn fixture definitionsDana Powers2016-04-071-15/+0
|
* Use version-indexed lists for request/response protocol structsprotocol_versionsDana Powers2016-04-051-4/+4
|
* Update imports from kafka.common -> kafka.errors / kafka.structsDana Powers2016-04-051-2/+2
|
* Improve KafkaClient connect and ready handlingnode_not_readyDana Powers2016-04-041-44/+40
| | | | | | - merge _initiate and _finish into _maybe_connect - add connected(node_id) method - only short-circuit send() when not connected
* Kafka IPv6 Support.Tim Evens2016-03-301-7/+8
| | | | | | IPv6 address without port can be defined as the IPv6 address. If the address is a hostname or if a port is included, then the address MUST be wrapped in brackets [] (E.g. [somehost]:1234 or [fd00:1001::2]:1234).
* Fix client poll tests (called with sleep=False)Dana Powers2016-01-231-4/+5
|
* Fix delayed_task timeout commit 45d26b6Dana Powers2016-01-101-3/+3
|
* Check delayed task timeout in client.poll()Dana Powers2016-01-101-2/+28
|
* Fill out more async client unit testsDana Powers2016-01-091-18/+165
|
* Use parameterized pytests in test_client_async; add pytest-mocker pluginDana Powers2016-01-031-70/+94
|
* Skeleton tests for async kafka clientDana Powers2016-01-011-0/+103