Comments (3)
There was no deprecation warning, you did everything right. I'll try to see how we can add one if we have to do this kind of change in the future.
from elasticsearch-py.
Hello! And sorry that elasticsearch-py 8.13 broke your workflow. This part of the code is generated from the elasticsearch-specification repository. The current representation was fine for Python which only exposes the first level (type
and settings
, not settings.endpoint
) but caused issues in languages like Java, .NET, C# and JavaScript. elastic/elasticsearch-specification#2255 fixes those issues at the cost of breaking the compatibility with all 8.12 clients.
This means that while this worked in elasticsearch-py 8.12:
client.snapshot.create_repository(
name="snapshot_name",
verify=False,
type="url",
settings={
"url": "file:/mount/backups/my_fs_backup_location",
},
)
This is now needed in elasticsearch-py 8.13:
es.snapshot.create_repository(
name="snapshot_name",
verify=False,
repository={
"type": "url",
"settings": {
"url": "file:/mount/backups/my_fs_backup_location",
},
},
)
If you need something that works both in 8.12 and 8.13, you can use the body
parameter instead:
es.snapshot.create_repository(
name="snapshot_name",
verify=False,
body={
"type": "url",
"settings": {
"url": "file:/mount/backups/my_fs_backup_location",
},
},
)
Sorry again that this breaks your workflow.
from elasticsearch-py.
@pquentin Thank-you for explaining the reasoning, it seems like a good project to standardise functionality across the various clients. I did receive a warning message on this method about using secrets in the payload instead of the Elasticsearch keystore, but I didn't ever see a deprecation warning in the Gitlab CI output for these parameters.
It would have been nice if we had some kind of heads up from the client about this change in advance, as I'm always looking at this output and looking for warnings/errors. I'm wondering if my inclusion of secrets masked that or if there was no deprecation warning. Either way, thanks for taking the time to point me in the right direction :)
from elasticsearch-py.
Related Issues (20)
- Memory leak when using AsyncElasticsearch HOT 3
- search with nested sort results in 0 results HOT 8
- Helpers for `bulk` method such as `async_bulk` sleep in blocking manner, preventing graceful shutdown HOT 2
- `retry_on_status` setting does not work as expected with requests that should not be retried immediately
- es部署后索引无法创建 HOT 1
- Ability to pass headers to index function / other functions or Load headers from client HOT 1
- Incremented connection delay are not of the stated duration HOT 3
- client fails to connect to self-managed Elasticsearch instance at https://localhost:9200 using all methods described in documentation HOT 2
- Bulk action typing does not allow `TypedDict`
- Unexpected ilm.put_lifecycle behavior
- Unable to connect via AsyncElasticsearch using ssl fingerprint HOT 1
- [DOC] Add more Python Client code examples to main Elasticsearch Docs | Set up and Upgrade Elasticsearch HOT 2
- [Documentation] Access to specialized clients is not documented HOT 1
- Test failures against NumPy 2.0.0rc1
- 8.13.1: pytest fails with `ImportError: cannot import name 'OrjsonSerializer' from 'elasticsearch.serializer` in elasticsearch/serializer.py HOT 8
- Add update_trained_model_deployment to ML client HOT 1
- Improve typing of string enums
- Setting custom node_pool_class does not work and seems to be a typo HOT 2
- py>=3.10 client>7.10.0 can not run HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-py.