Add note in Changelog about parameter ordering changes 6.x -> 7.x
See original GitHub issueWe recently upgrade to ES 7 and a script that’s worked for a long time started failing and we traced it back to the use .count()
failing. Using the old elasticsearch
6.8.1 module works and we’ll use that as a workaround, but it would be nice to be able to use the ES 7 module to match our cluster
Elasticsearch version (bin/elasticsearch --version
): Version: 7.9.1, Build: default/docker/083627f112ba94dffc1232e8b42b73492789ef91/2020-09-01T21:22:21.964974Z, JVM: 14.0.1
elasticsearch-py
version (elasticsearch.__versionstr__
): 7.9.1
Please make sure the major version matches the Elasticsearch server you are running.
Description of the problem including expected versus actual behavior:
Steps to reproduce:
- Run
.count(index)
whereindex
is the name of an index - Observe that an exception is raised
Traceback (most recent call last):
File "test_es.py", line 104, in <module>
sys.exit(main())
File "test_es.py", line 74, in main
total = es_conn.count(index)['count']
File "/Users/dlj/.pyenv/versions/3.8.5/lib/python3.8/site-packages/elasticsearch/client/utils.py", line 152, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/Users/dlj/.pyenv/versions/3.8.5/lib/python3.8/site-packages/elasticsearch/client/__init__.py", line 528, in count
return self.transport.perform_request(
File "/Users/dlj/.pyenv/versions/3.8.5/lib/python3.8/site-packages/elasticsearch/transport.py", line 392, in perform_request
raise e
File "/Users/dlj/.pyenv/versions/3.8.5/lib/python3.8/site-packages/elasticsearch/transport.py", line 358, in perform_request
status, headers_response, data = connection.perform_request(
File "/Users/dlj/.pyenv/versions/3.8.5/lib/python3.8/site-packages/elasticsearch/connection/http_urllib3.py", line 269, in perform_request
self._raise_error(response.status, raw_data)
File "/Users/dlj/.pyenv/versions/3.8.5/lib/python3.8/site-packages/elasticsearch/connection/base.py", line 300, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
elasticsearch.exceptions.RequestError: RequestError(400, 'parsing_exception', 'Failed to parse')
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Keep a Changelog
A changelog is a file which contains a curated, chronologically ordered list of notable changes for each version of a project. Why keep...
Read more >What's New In Python 3.7 — Python 3.11.1 documentation
The new -X utf8 command line option and PYTHONUTF8 environment variable can be used to ... PEP 564 – Add new time functions...
Read more >Changes — Click Documentation (8.1.x)
Allow commands, groups, parameters, and types to override their completions suggestions. Groups complete the names commands were registered ...
Read more >Breaking changes in 7.0 | Elasticsearch Guide [7.17] | Elastic
This section discusses the changes that you need to be aware of when migrating your application to Elasticsearch 7.0. See also What's new...
Read more >Changelog — pytest documentation
Note : pytest was not able to provide a deprecation period for this change. ... #5196: Tests are now ordered by definition order...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s all well and good, but having a list of breaking changes in the changelog would be very helpful and would have prevented us from running into this issue at all
I second this it would be helpful to know the changes required in updating from the 6.x -> 7.x really difficult figuring out what the breaking changes are. As i’m in the same situation as @itayB