Closed evios closed 12 months ago
Likely a bug that slipped through test coverage :( Care to write a test that reproduces this? Maybe a fix?
Fixed in https://github.com/opensearch-project/opensearch-py/pull/601, appreciate any additional eyes @evios.
@dblock thanks for the instant fixing. Sure, will keep an eye on the updated version :)
@evios If you want to try it from HEAD that'd be great.
We've released 2.4.2 with a fix.
Thank you, it works smoothly with 2.4.2
What is the bug?
TypeError("_process_bulk_chunk() got multiple values for argument 'raise_on_exception'")
How can one reproduce the bug?
call
What is your host/environment?
Debian Bullseye
Do you have any additional context?
It was first found in version 2.4.0.
ignore_status
transferred as 3rd positional argument in_process_bulk_chunk
: https://github.com/opensearch-project/opensearch-py/blob/567ede30235bf5168e72cbcbf9f56a875166368a/opensearchpy/helpers/actions.py#L486-L488but
raise_on_exception
expected as 3rd positional: https://github.com/opensearch-project/opensearch-py/blob/567ede30235bf5168e72cbcbf9f56a875166368a/opensearchpy/helpers/actions.py#L239-L248Previous versions did not have it. Version 2.3.2 snippet: https://github.com/opensearch-project/opensearch-py/blob/2f57661ebb7c692142c4667f39ac6a2124620f8d/opensearchpy/helpers/actions.py#L470-L478