elastic / elasticsearch-serverless-python

Official Python client for Elasticsearch Serverless
Apache License 2.0
9 stars 4 forks source link

Fix data stream creation refresh #47

Closed pquentin closed 4 months ago

pquentin commented 4 months ago

There's no reason to refresh after creating an index or data stream, as long as it was acknowledged. If it's not acknowledged, I would expect a timeout. (And we do have timeouts that need to be fixed, by the way.)

Fixes the following error:

ERROR test_elasticsearch_serverless/test_async/test_server/test_helpers.py::TestAsyncDataStreamReindex::test_reindex_index_datastream_op_type_index - TypeError: IndicesClient.create_data_stream() got an unexpected keyword argument 'refresh'