mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-13 00:15:47 +00:00
When simultaneous close requests were made for the same job it was possible that one of the requests would inappropriately log error messages about the job having failed. This change prevents that problem, whilst continuing to adhere to the requirement that close requests for already closing jobs do not return until the close request that is doing the work completes. relates elastic/x-pack-elasticsearch#2912 Original commit: elastic/x-pack-elasticsearch@513b7fa1d6