-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
base: master
Are you sure you want to change the base?
Conversation
5608625
to
0dbf506
Compare
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
There was a problem hiding this 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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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...
Summary
This PR implements specification TSD-008 for partial write errors.
Checklist
Related issues
related to #11942
related to #14802
related to #15908