Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix close_timeout for new started harvesters
If close_timeout is set, a file handler inside the harvester is closed after `close_timeout` is reached even if the output is blocked. For new which were found for harvesting during the output was blocked, it was possible that the Setup of the file happened but then the initial state could not be sent. So the harvester was never started, file handler was open but `close_timeout` this not apply. Setup and state update are now turned around. This has the affect, that in case of an error during the setup phase, the state must be revert again. See elastic#3091 (comment)
- Loading branch information