mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 09:29:11 +00:00
The IndexAuditTrail had both a stop and close method that needed to be called in order to stop the service. There was a race where we called either flush or close in a non blocking fashion and then immediately closed the underlying client. This change makes the stop method wait for up to 10 seconds when closing the bulk processor. Closes elastic/elasticsearch#3279 Original commit: elastic/x-pack-elasticsearch@0d776bc91a