Commit Graph
56 Commits
Author SHA1 Message Date
Yotam TanayandHonza Král a644af0e07 Fix error where address is null in _get_host_info (#506)
* Fix error where address is null in _get_host_info

* Bump CI
2017-01-03 15:12:15 +01:00
Honza Král fe53ab588e Fix sniffing for 5.0
Fixes #477
2016-12-06 12:17:57 +01:00
Honza Král f8b090c7cc retry on 502, 503 and 504 responses from ES 2016-04-26 20:08:06 +02:00
Honza Král c51b8fdeef Refactored sniff_hosts for easier implementation of AsyncTransport 2016-03-14 22:23:04 +01:00
Honza Král 64ff08b2ae Move HEAD handling to Transport 2016-03-10 19:06:20 +01:00
Honza Král 38bb0aafbd Have transport.perform_request only return data 2016-03-10 18:59:31 +01:00
Will McGinnis b0d3de0ada requested changes. 2016-03-03 19:50:17 -05:00
Will McGinnis 8a18e4c743 added close methods to everything below transport 2016-03-03 19:31:31 -05:00
Honza Král a63bad4e1d Provide more documentation on _get_sniff_data 2015-12-07 18:41:13 +01:00
Honza Král a5aa160b81 Factored out the ES communication when sniffing
This should help with #312
2015-12-07 18:26:00 +01:00
Honza Král fb8eb4e385 Respect publish host when present on a node.
Closes #251. Thanks danpilch and bowensong for the patch!
2015-12-01 03:40:40 +01:00
Honza Král 1b60d9bf84 iElasticsearch 2.0 exposes just host:port in nodes.info
Fixes #293
2015-11-02 14:26:28 +01:00
Honza Král 10c36ad530 Make search_exists consistent with other _exists APIs
Fixes #230 Thanks ncrocfer for the report!
2015-05-18 15:50:35 +02:00
Steven Moy 7a674dbb0b Fixed Issue 180 Pass connection pool and seed_connections as two
separate arguments
2015-01-08 15:43:14 -08:00
Honza Král 0fd051922b Use chain instead of concatenation.
Fixes #180
2015-01-09 00:16:34 +01:00
Honza Král d3e745ab77 Make initial sniff (sniff_on_start) ignore sniff_timeout
This is due to issue mentioned in #167 as part of discussion
2015-01-04 19:44:21 +01:00
Honza Král 836c6d1933 Introducing DummyConnectionPool for when only 1 connection defined 2014-12-20 00:35:24 +01:00
Honza Král 265d00d5d6 Retry on some HTTP statuses and touching up the retry logic 2014-11-24 17:08:23 +01:00
Honza Král bf74f7244e make host url parsing more resilient
Reject invalid combinations of url scheme and connection_class
2014-11-14 15:55:32 +01:00
Honza Král d9296e85b9 Timeout should not trigger a retry by default 2014-11-10 23:52:26 +01:00
Honza Král 18d6b41e82 Allow body to be passed as bytes in python 3.4
Fixes #113, thanks leplatrem for the report!
2014-08-23 15:25:44 -07:00
Honza Král 8966902e40 Filter out master-only nodes when sniffing
Fixes #106, thanks jolynch!
2014-07-31 00:33:26 +02:00
Honza Král c112399631 Allow for global parameter to set per-request timeout
Fixes #100, thanks portante!
2014-07-02 15:56:57 +02:00
Bruno Renié df25a01638 Typo in sniff_hosts error message 2014-04-30 18:25:16 +02:00
Honza Král d9fd79934c Better sniff url 2014-02-14 00:29:41 +01:00
Honza Král 36ff358948 Empty string should not be returned as None 2014-02-10 18:14:39 +01:00
Honza Král bf9917b0bf Add an option to change the timeout used for sniff requests.
Fixes #45
2014-02-10 16:57:35 +01:00
Honza Král 6a7d4389cd Always raise TransportError with two params.
Fixes #44, thanks brianz!
2014-02-06 01:15:41 +01:00
Honza Král ce27faf296 Node info api has moved 2014-01-18 01:53:47 +01:00
Honza Král 05c4eefbf3 Enable deserialization of different content types coming from the server. 2013-12-14 18:15:15 +01:00
Honza Král e2ab7ea80d Adding a third return value from connection.perform_request - headers
This will be used to implement deserializing based on mimetype
2013-12-13 19:36:21 +01:00
Honza Král 95fba05e02 Fix unicode body handling.
Only body should be encoded as bytes, not anything going through the
serializer (mostly because of bulk)
2013-12-04 15:07:56 +01:00
Honza Král cf03f9831a Ass send_get_body_as parameter for situations where GET cannot have a body 2013-12-02 22:57:47 +01:00
Hari haran daad6eacca Spell mistake corrected 2013-11-18 02:17:17 +05:30
Honza Král 9e68ea91ed If we have sniffed no hosts, consider our sniff failed 2013-11-03 22:38:30 +01:00
Honza Král 04afc03cdd Thrift plugin uses different format in cluster stats 2013-10-29 17:45:49 +01:00
Honza Kral 672fdf7d5f Make ignore a global parameter 2013-09-25 23:09:50 +02:00
Honza Kral d72b15680c Switch to urllib3 for more performance 2013-08-08 18:06:36 +02:00
Honza Kral ba98e13da7 Don't serialize stings 2013-06-20 14:07:09 +02:00
Honza Kral da478caf12 clarify comment, we now mark all connections as live on success 2013-06-14 16:49:05 +02:00
Honza Kral c686cd2be3 Have error counting contained within ConnectionPool and don't leak out to Transport
Thanks @bleskes for the inspiration!
2013-06-14 16:46:58 +02:00
Honza Kral 51486bec13 Mark connection as dead even when sniffing to avoid using that host 2013-06-14 16:36:56 +02:00
Honza Kral 38661ec508 HEAD requests return no body 2013-06-08 01:26:13 +02:00
Honza Kral a7a3d660b5 It's REtries, not tries, respect that 2013-05-24 01:45:15 +02:00
Honza Kral b1e6c4d6a7 When sniffing try all connections, including the ones used to seed the client 2013-05-24 01:42:04 +02:00
Honza Kral dd19553ba7 Have sniff_hosts reuse existing connection to not waste open sockets 2013-05-24 01:29:31 +02:00
Honza Kral c23aacf1f9 Sniff based on time interval, not number of requests 2013-05-23 17:42:14 +02:00
Honza Kral 787820803a don't shorted sniffing intervals on failure 2013-05-23 17:22:49 +02:00
Honza Kral a093f0258e support IPv6 addresses when parsing node info 2013-05-22 18:49:30 +02:00
Honza Kral fecd26193c Simpler easier to use callback for extracting node information 2013-05-22 18:45:55 +02:00