mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-20 20:08:56 +00:00
Flush has the contract that when it is done results are up-to-date. Thus, it adds no value to have it timeout. In most cases, the request should be pretty responsive apart from when it advances time forward. In the latter scenario, it could force results to be calculated for a long period of time which could take long. The one use case for this is the datafeeds and there is no issue with waiting flush to finish. This PR changes flush to always wait to completion. However, it adds checking that the c++ process is alive every second, to avoid long waits in vain when something has gone horribly wrong. Fixes elastic/elasticsearch#826 Original commit: elastic/x-pack-elasticsearch@de421ab843
= Elasticsearch Ml Plugin Behavioral Analytics for Elasticsearch