-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: event read from syslog when syslog entry too long #16781
fix: event read from syslog when syslog entry too long #16781
Conversation
e7c3caa
to
bd33cc7
Compare
/kind bug |
This affects container wait endpoint of Docker Compat API, since it relies on events. |
This is imo worth backporting to 4.3. |
My specific case needs |
fca29c3
to
22f4cf2
Compare
From
Given that we always need to full information we should set it to @matejvasek You should also add a test with labels > 64 KiB to make sure we do not regress again. |
@Luap99 I did add a test at first, but it was failing in CI for some reason so I reverted it. |
The test worked locally perfectly fine, and I cannot debug what is wrong in CI. |
When labes map is too big we may get syslog entry truncated. This breaks JSON parsing making event loading impossible. [NO NEW TESTS NEEDED] Signed-off-by: Matej Vasek <mvasek@redhat.com>
22f4cf2
to
04ea8ea
Compare
I set the threshold to 0 as suggested @Luap99 . |
I think API test force |
@Luap99 but the |
Yeah I am not sure what the API tests use, I recommend to use the system tests and run this for both file and journald driver. This makes it more explicit what is actually being tested. |
311013d
to
49b7689
Compare
Code changes LGTM |
@Luap99 I am close to finishing tests in
|
b6c3422
to
ae870e6
Compare
LGTM |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, matejvasek The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Probably not, we're starting to work on 4.4 for a late January release now. |
@mheon |
For Fedora, it should land as soon as it releases (minus delay waiting for the bodhi updates to make it to stable). For RHEL, RHEL 8.8 will get it. |
@mheon |
How so? Would this be considered a breaking change? |
We noticed problems after #15633 (4.3). |
Ack, OK. I don't think we're considering another 4.3 release, but if we do this should definitely be in consideration. |
Yes no 4.3 updates, you will get it in 4.4. We should have RC1 available this week. |
@rhatdan |
Or will any |
I noticed |
It is not used, 4.3 was never released to RHEL, this branch was created in anticipation of releasing it to RHEL, but since the releases fell in the wrong way we decided to skip that release. RHEL8.8 and 9.2 will get 4.4 |
4.3.1-rhel was used for a CentOS stream release or two, I think. It won't make it into RHEL proper. |
When labels map is too big we may get syslog entry truncated.
This breaks JSON parsing making event loading impossible.
By default the limit is 64KiB, this PR set it to 0 == unlimited.
related to:
/containers/(id or name)/wait
) #16834