Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix high IO after sudden filebeat stop (elastic#35893)
In case of corrupted log file (which has good chances to happen in case of sudden unclean system shutdown), we set a flag which causes us to checkpoint immediately, but never do anything else besides that. This causes filebeat to just checkpoint on each log operation (therefore causing a high IO load on the server and also causing filebeat to fall behind). This change resets the logInvalid flag after a successful checkpointing.
- Loading branch information