Skip to content

[7.4] Check if file has disappeared sooner in Log reader (#13907)#13959

Merged
ycombinator merged 1 commit intoelastic:7.4from
ycombinator:backport/7.4/pr-13907
Oct 8, 2019
Merged

[7.4] Check if file has disappeared sooner in Log reader (#13907)#13959
ycombinator merged 1 commit intoelastic:7.4from
ycombinator:backport/7.4/pr-13907

Conversation

@ycombinator
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.4:

* Adding comment about EOF and removing redundant logic

* Adding debug logging when close_remove and close_renamed situations are reached

* Check file stats related errors before adding to buffer

* Reordering checks to be same as before

* Add CHANGELOG entry

* Fixing issue # in CHANGELOG entry

* Move CloseInactive and truncate checks back to being after EOF check

* Don't perform stat call for CloseRemoved/CloseRenamed unless those settings are enabled

* Better comments / function godoc

* Renaming method to be more descriptive

* Fixing up CHANGELOG
@ycombinator ycombinator requested a review from urso October 8, 2019 09:37
@ycombinator
Copy link
Copy Markdown
Contributor Author

jenkins, test this

@ycombinator ycombinator merged commit f69a1d6 into elastic:7.4 Oct 8, 2019
@ycombinator ycombinator deleted the backport/7.4/pr-13907 branch December 25, 2019 11:07
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…lastic#13959)

* Adding comment about EOF and removing redundant logic

* Adding debug logging when close_remove and close_renamed situations are reached

* Check file stats related errors before adding to buffer

* Reordering checks to be same as before

* Add CHANGELOG entry

* Fixing issue # in CHANGELOG entry

* Move CloseInactive and truncate checks back to being after EOF check

* Don't perform stat call for CloseRemoved/CloseRenamed unless those settings are enabled

* Better comments / function godoc

* Renaming method to be more descriptive

* Fixing up CHANGELOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants