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

fix: unexpected short read error #2

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

smira
Copy link
Member

@smira smira commented May 20, 2024

The fix is to use io.ReadFull, as we expect the source to read the full buffer, but we used Read() which is not guaranteed to read the full buffer.

It shows up with Talos in the tests.

The fix is to use `io.ReadFull`, as we expect the source to read the
full buffer, but we used `Read()` which is not guaranteed to read the
full buffer.

It shows up with Talos in the tests.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@smira smira force-pushed the fix/tail-read-full-bug branch from 8b10dc6 to 7cb7294 Compare May 20, 2024 15:14
@smira
Copy link
Member Author

smira commented May 20, 2024

/m

@talos-bot talos-bot merged commit 7cb7294 into main May 20, 2024
14 checks passed
smira added a commit to smira/talos that referenced this pull request May 20, 2024
See siderolabs/go-tail#2

It seems to pop up more with compressed logs, but overall makes sense to
be fixed.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this pull request May 28, 2024
See siderolabs/go-tail#2

It seems to pop up more with compressed logs, but overall makes sense to
be fixed.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit d430704)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants