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

feat(outputs): Implement partial write errors #16146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

srebhan
Copy link
Member

@srebhan srebhan commented Nov 5, 2024

Summary

This PR implements specification TSD-008 for partial write errors.

Checklist

  • No AI generated code was used in this PR

Related issues

related to #11942
related to #14802
related to #15908

@telegraf-tiger telegraf-tiger bot added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Nov 5, 2024
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented Nov 5, 2024

@srebhan srebhan added plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. labels Nov 7, 2024
Copy link
Member

@DStrand1 DStrand1 left a comment

Choose a reason for hiding this comment

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

Great work! I tested this thoroughly, especially with the disk buffer and didn't find any issues. This included some manual tests, testing other plugin test cases with the disk buffer, and coverage tests. I added a couple comments as well

// WAL files cannot be fully empty but need to contain at least one
// item to not throw an error
if err := b.file.TruncateFront(b.writeIndex()); err != nil {
panic(err)
Copy link
Member

Choose a reason for hiding this comment

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

Should we continue to log more info here like before?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will bring this additional logging back once the other two points are clarified...

models/buffer_disk.go Show resolved Hide resolved
internal/errors.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/output 1. Request for new output plugins 2. Issues/PRs that are related to out plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants