Better handling of ResourceAlreadyExistsException
for security index
#46214
Labels
>bug
:Security/Security
Security issues without another label
Team:Security
Meta label for security team
When the security index is not created and operation is being performed on the security index we prepare the index and then execute the operation. But in case we receive two parallel requests then there are two requests for creating the security index. One of them fails with
ResourceAlreadyExistsException
as the index has been created and then it immediately executes the operation assuming security index is available. This may not be true as the index has been created but not yet available (all primary shards not yet active, in case of security index it usually is 1), the request fails with different error depending on the operation being performed.Discuss if this needs to be fixed and what the resolution looks like.
Options:
ResourceAlreadyExistsException
is thrown instead of continuing with the operation with a proper error message.The text was updated successfully, but these errors were encountered: