You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the positions file is corrupted/mangled somehow, it causes a promtail daemon to continually fail. Because it's mounted as a hostpath, it persists across both restarts and pod deletions/recreations on the same host and requires manual intervention to rectify. Perhaps this is desirable?
Ideas
delete a corrupted file, forcing all positions to be recreated/reset? We'd see out of order errors, but would these eventually catch up?
Leave as it is?
Flag to determine which strategy to use?
credit @pracucci :
An easy solution to avoid truncated files could be writing to a temporary file and then use a move syscall to move the file to the expected location (the move is atomic). This also allows you to verify the file written in tmp location before moving it.
What
If the positions file is corrupted/mangled somehow, it causes a promtail daemon to continually fail. Because it's mounted as a hostpath, it persists across both restarts and pod deletions/recreations on the same host and requires manual intervention to rectify. Perhaps this is desirable?
Ideas
credit @pracucci :
An easy solution to avoid truncated files could be writing to a temporary file and then use a move syscall to move the file to the expected location (the move is atomic). This also allows you to verify the file written in tmp location before moving it.
/cc @slim-bean @rfratto
Origin
#1457
The text was updated successfully, but these errors were encountered: