mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
Release: Add 1.7.2 bwc indices/versions
* Added BWC indices * Added snapshot version to Version.java * Fixed create_bwc_index to use localhost instead of localhost and 127.0.0.1 (problem with ipv4/6 setup)
This commit is contained in:
parent
40959068d5
commit
a96350d785
4 changed files with 6 additions and 2 deletions
|
@ -154,7 +154,7 @@ def create_client(http_port=DEFAULT_HTTP_TCP_PORT, timeout=30):
|
|||
for _ in range(0, timeout):
|
||||
# TODO: ask Honza if there is a better way to do this?
|
||||
try:
|
||||
client = Elasticsearch([{'host': '127.0.0.1', 'port': http_port}])
|
||||
client = Elasticsearch([{'host': 'localhost', 'port': http_port}])
|
||||
client.cluster.health(wait_for_nodes=1)
|
||||
client.count() # can we actually search or do we get a 503? -- anyway retry
|
||||
return client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue