Skip to content
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

[pkg/stanza] Fix issue where batching caused incorrect starting point #27773

Conversation

djaglowski
Copy link
Member

The start_at setting applies only to the first poll interval. Once this interval is complete, we should always read new files from the beginning. This fixes a bug which prematurely switched to reading from the beginning, when files are numerous enough to require batching.

@djaglowski djaglowski force-pushed the pkg-stanza-fileconsumer-reader-from-end-batches branch from 6c7b90d to 9ceff41 Compare October 16, 2023 21:00
@djaglowski djaglowski marked this pull request as ready for review October 16, 2023 22:04
@djaglowski djaglowski requested review from a team and Aneurysm9 October 16, 2023 22:04
Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@djaglowski djaglowski merged commit 2ce2442 into open-telemetry:main Oct 17, 2023
85 checks passed
@djaglowski djaglowski deleted the pkg-stanza-fileconsumer-reader-from-end-batches branch October 17, 2023 12:39
@github-actions github-actions bot added this to the next release milestone Oct 17, 2023
JaredTan95 pushed a commit to openinsight-proj/opentelemetry-collector-contrib that referenced this pull request Oct 18, 2023
sigilioso pushed a commit to carlossscastro/opentelemetry-collector-contrib that referenced this pull request Oct 27, 2023
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants