-
I was testing a specific setup with the Vector 0.41.1 and observed duplicate events in my sink. The setup is the following. I have the single log file, which Vector reads as a File Source. The file is the only included path without any wildcards. My application doesn't use any log rotation, it just opens the same log file, truncates it and starts logging from the beginning of the file.
The old reader was not shut down immediately. There are some seconds of timeout, after which that reader reads the file up to EOF and only then it is terminated. It is useful for the classic log rotation strategies, but breaks the case of one log file being actively overwritten. Here is how it looks in the Vector's log:
I reproduced it on Windows 10 and Ubuntu (in WSL). Thank you. Any thoughts welcome! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @mkudukin, if this is reproducible please open a bug https://github.com/vectordotdev/vector/issues/new?template=bug.yml so we can track it properly. Is this behavior deterministic? If yes, please also include reproduction steps. Otherwise, please include Vector config and any other details to help us reproduce on our side. |
Beta Was this translation helpful? Give feedback.
Thank you @pront, I opened the bug #23619, which have reproduction script attached.