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

Cannot read/write long events from journald (affects docker compat API /containers/(id or name)/wait) #16834

Closed
matejvasek opened this issue Dec 14, 2022 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@matejvasek
Copy link
Contributor

matejvasek commented Dec 14, 2022

It is not possible to read/write some events for entries with huge labels map.

Log contains:

ERRO[0016] Unable to decode event: unexpected end of JSON input

There are two issues involved, one read issue and one write issue:

  • Read issue: default limit (65536B) on how much from log entry is read.
    Longer entries are truncated breaking JSON parsing.

  • Write issue: SELinux prevents from writing long entries to journald.

This became especially severe after #15633 .
After the change the wait call for next-exit will hang indefinitely, because the exit event is not read.

/kind bug

related to:

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 14, 2022
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

1 participant