-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[receiver/filelog] File log receiver not parsing the log when restarted #29609
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This may be related to behavior described in #29491. Can you how you are stopping the collector? |
Yeah, seems so. we are using the testcontainers lifecycle to stop/start the collector |
I've opened #29610 which should address this. I'd like to have a test case which ensures this works as intended, but it's not very straightforward since any organized shutdown would succeeded in persisting the checkpoints. Any chance you want to contribute an integration test to the filelog receiver using the same testcontainers mechanism? |
Component(s)
pkg/stanza, receiver/filelog
What happened?
Description
The file log receiver with storage extension is parsing the log data from a file "A". the collector is stopped, more log lines are to a file A. when the collector is restarted the loglines that were written to log A when the collector is in dead state are missing.
Certainly! This test case appears to be testing the behavior of a collector when it is restarted, specifically in the context of a storage extension.
Steps to Reproduce
Test Case reproducible summary, log lines that are written to the file when collector is stopped are not parsed when the collector is restarted
Setup:
Create a unique log stream name.
Start the OpenTelemetry collector with specific configuration and the log stream name.
Create a temporary log file.
Logging:
Write three log messages to the file.
Validation - First Round:
Validate the logs collected by the collector.
Collector Stop:
Stop the collector.
Logging After Stop:
Add more log messages to the file.
Collector Start:
Restart the collector.
Validation - Second Round:
Validate the logs again.
Collector Stop (Cleanup):
Stop the collector.
Expected Result
Actual Result
Collector version
v0.89.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
No response
Additional context
This Behavior is breaking in
v0.89.0
, it was fine tillv0.88.0
The text was updated successfully, but these errors were encountered: