-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a Size() function to get the length of the current file being …
…tailed in bytes
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This method introduced race condition into the library. It reads
tail.file
, which can at the same time be modified by goroutine started inTailFile
method (when reopening the file). (See failing tests in grafana/loki#1283)