Open lukasbindreiter opened 4 months ago
Pinging code owners:
exporter/file: @atingchen
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
You might want to use logrotate instead of deleting files outright.
Component(s)
exporter/file
What happened?
Description
If a currently open file from
fileexporter
is deleted, no new file with the same name will be created and all future entries will be silently discarded.Some Background why this is needed: We are running
otelcol
in an offline environment (simulating a satellite, on which our service will run eventually), to write incoming traces and logs to ajsonl
file. This file is in a special folder, which will be downloaded ("downlinked" in terms of satellites) to another machine regularly, and afterwards deleted. From there, we can ingest the traces/logs into a tracing platform such as jaeger. The actual download/downlink behaviour is outside of our control, we just have access to a folder that we can write files to that will be downlinked. Also this downlink happens at pretty much random times.Steps to Reproduce
Start the collector:
Start a service sending traces to the collector
After a while, we can observe the following files:
Now, delete
logs.jsonl
andtraces.jsonl
downlink
folders will be empty, no newjsonl
file is ever created (and also no warnings are printed by the otelcol binary that something is discarded)Expected Result
Once a currently active exported file is deleted, and new entries were to be added, I expected
otelcol
to re-create the file and start adding the new entries to it.Actual Result
No new file is ever created, and instead all newly received entries are silently discarded.
Collector version
v0.104.0
Environment information
Environment
Running on: https://developer.nvidia.com/embedded/jetson-tx2-nx (ubuntu ARM based OS "Jetson Linux")
OpenTelemetry Collector configuration
Log output
Additional context
No response