Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promtail: Fail fast if promtail can't fail the file #2491

Merged
merged 1 commit into from
Aug 12, 2020
Merged

Conversation

slim-bean
Copy link
Collaborator

enable the MustExist flag when starting a tailer on a fail, this will cause the tail to fail fast and allow promtail to attempt to re-open the file.

Fixes #1325

… cause the tail to fail fast and allow promtail to attempt to re-open the file.
@codecov-commenter
Copy link

Codecov Report

Merging #2491 into master will decrease coverage by 0.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2491      +/-   ##
==========================================
- Coverage   63.29%   63.19%   -0.11%     
==========================================
  Files         162      162              
  Lines       14114    14115       +1     
==========================================
- Hits         8934     8920      -14     
- Misses       4470     4487      +17     
+ Partials      710      708       -2     
Impacted Files Coverage Δ
pkg/promtail/targets/file/tailer.go 74.15% <100.00%> (+0.29%) ⬆️
pkg/promtail/positions/positions.go 46.49% <0.00%> (-13.16%) ⬇️

Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@slim-bean slim-bean merged commit 44f8dc3 into master Aug 12, 2020
@slim-bean slim-bean deleted the promtail-tail branch August 12, 2020 00:28
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.

promtail: failed to get file size from tailer
3 participants