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
When the collector is shutdown while still in progress reading a file it will delete the file even though it's not fully been read.
Steps to Reproduce
Setup the filelog receiver with delete_after_read enabled and target a large file. Start the collector then immediately stop it. The file will be deleted even though the collector didn't finish reading it.
Expected Result
File is left intact until fully read.
Actual Result
File is deleted on shutdown when only partially read.
Collector version
v0.71.0
Environment information
Environment
OS: macOS 13.2.1
Compiler(if manually compiled): go 1.20.1
Component(s)
pkg/stanza
What happened?
Description
When the collector is shutdown while still in progress reading a file it will delete the file even though it's not fully been read.
Steps to Reproduce
Setup the
filelog
receiver withdelete_after_read
enabled and target a large file. Start the collector then immediately stop it. The file will be deleted even though the collector didn't finish reading it.Expected Result
File is left intact until fully read.
Actual Result
File is deleted on shutdown when only partially read.
Collector version
v0.71.0
Environment information
Environment
OS: macOS 13.2.1
Compiler(if manually compiled): go 1.20.1
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: