Reindex with wait_for_completion=false does not return deprecation warnings if security is enabled #120252
Labels
>bug
:Distributed Indexing/Reindex
Issues relating to reindex that are not caused by issues further down
:Security/Authorization
Roles, Privileges, DLS/FLS, RBAC/ABAC
Team:Distributed Indexing
Meta label for Distributed Indexing team
Team:Security
Meta label for security team
The reindex YAML tests check that a deprecation warning is returned if a
sort
is provided andwait_for_completion
is false.elasticsearch/modules/reindex/src/yamlRestTest/resources/rest-api-spec/test/reindex/30_search.yml
Lines 125 to 158 in c0f54a9
This was added in #49855
However this behaviour does not work if security is enabled.
The behaviour depends on the transport action (and therefore the validator) executing within the same
ThreadContext
as the rest action so that theWarning
response header can be returned on the http channel.However, because security introduces asynchronous authorization steps into the action dispatch, the rest action is (sometimes) complete before the transport action executes, and the transport response headers are not returned to the client.
The text was updated successfully, but these errors were encountered: