-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle truncation while assigning initial offsets
Initial offsets never considered the current state of the file, instead just preferring to use the state saved offsets or defaulting to the value configured by the `MZ_LOOKBACK` option. This means truncation is handled downstream where the agent doesn't have enough contextual information to appropriately handle the case and potentially dropping logs. This change causes initial offsets to be ignored if they exceed the current length of the file, and instead use the default values. Ref: LOG-17217 Signed-off-by: Jacob Hull <[email protected]>
- Loading branch information
1 parent
5ff60e9
commit d71e6f1
Showing
3 changed files
with
94 additions
and
6 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 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 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