-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Update go-txfile and dependencies #7859
Conversation
Can |
@andrewkroh yes, it should be unskipped. Thank you! |
94fc470
to
4b4f2a1
Compare
go-txfile requires a newer version of golang.org/x/sys
fix crossbuild
8e0efee
to
d5402d2
Compare
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.
Minor comments concerning errors that could be hidden and might need to be exposed in the logger.
for len(b.pending) > 0 { | ||
n, err := b.queue.Writer().Write(b.pending) | ||
n, err := w.Write(b.pending) |
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.
This error will get hidden, should we log it as debug?
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.
It's not logged on purpose. There can be a many reasons why this fails. E.g. IO error vs. spool is full. The later one is no error, but expected behavior. In future PRs we will check for the causes + handle/log them appropriately.
avail, err := reader.Available() | ||
if err != nil { | ||
return nil, 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 log it?
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.
This error will be logged by the beat. The spool constructor fails if this call fails.
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.
LGTM
* Update go-txfile * Update golang.org/x/sys go-txfile requires a newer version of golang.org/x/sys * Update spool to take API changes into account * Ensure spool opening root cause is included when printing the error message * cleanup vendor after govendor fails * Update notice file * Update changelog * Fix build * Update go-txfile to 0.0.3 (cherry picked from commit 10f41be)
* Update go-txfile * Update golang.org/x/sys go-txfile requires a newer version of golang.org/x/sys * Update spool to take API changes into account * Ensure spool opening root cause is included when printing the error message * cleanup vendor after govendor fails * Update notice file * Update changelog * Fix build * Update go-txfile to 0.0.3 (cherry picked from commit 10f41be)
* Update go-txfile * Update golang.org/x/sys go-txfile requires a newer version of golang.org/x/sys * Update spool to take API changes into account * Ensure spool opening root cause is included when printing the error message * cleanup vendor after govendor fails * Update notice file * Update changelog * Fix build * Update go-txfile to 0.0.3 (cherry picked from commit 10f41be)
* Update go-txfile * Update golang.org/x/sys go-txfile requires a newer version of golang.org/x/sys * Update spool to take API changes into account * Ensure spool opening root cause is included when printing the error message * cleanup vendor after govendor fails * Update notice file * Update changelog * Fix build * Update go-txfile to 0.0.3 (cherry picked from commit 10f41be)
* Update go-txfile * Update golang.org/x/sys go-txfile requires a newer version of golang.org/x/sys * Update spool to take API changes into account * Ensure spool opening root cause is included when printing the error message * cleanup vendor after govendor fails * Update notice file * Update changelog * Fix build * Update go-txfile to 0.0.3 (cherry picked from commit b6e44a6)
Resolves #7849, #7867, #7720
This PR updates go-txfile to v0.0.3 and golang.org/x/sys packages (go-txfile requires more recent version).
The update fixes a number of Windows related bugs in spooling to disk and replaces a call to fsync with fcntl+F_FULLFSYNC on darwin.
The error messages generated by go-txfile will be more detailed. We will further improve error handling and error reporting in the spool in follow up PRs.
The changes to Changelog.asciidoc for all user visible fixes and improvements.