fluentd log driver. failed parse last partial message in fluentd #38951#38952
fluentd log driver. failed parse last partial message in fluentd #38951#38952thaJeztah merged 1 commit intomoby:masterfrom
Conversation
|
ping @anusha-ragunathan ptal |
|
FYI, you can also check for The idea of this PR LGTM. The last message in a series of partial messages should not be flagged as |
daemon/logger/fluentd/fluentd.go
Outdated
There was a problem hiding this comment.
While we are here, lets also add the missing fields in the data map.
data["partial_ordinal"] = strconv.Itoa(msg.PLogMetaData.Ordinal)
data["partial_last"] = strconv.FormatBool(msg.PLogMetaData.Last)```
There was a problem hiding this comment.
This is already taken care of by https://github.com/moby/moby/pull/38065/files, but CI is broke on that. You can carry over this specific change from that PR.
There was a problem hiding this comment.
Yes, well, this approach is much better
|
experimental failed with unrelated test failure. Is this a flaky test @thaJeztah ? |
|
doesn't look related no; retriggered ci |
Codecov Report
@@ Coverage Diff @@
## master #38952 +/- ##
==========================================
+ Coverage 36.89% 37.32% +0.42%
==========================================
Files 612 612
Lines 45332 45846 +514
==========================================
+ Hits 16727 17113 +386
- Misses 26319 26393 +74
- Partials 2286 2340 +54 |
…y#38951 Signed-off-by: Alexei Margasov <[email protected]>
|
My commit is not related to build issues. |
|
ping @cpuguy83 @anusha-ragunathan ptal |
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM, thanks!
ping @anusha-ragunathan ptal
I use fluentd logging driver
In my containers the log it is more than 16 kb
Such the log are marked with partial_message flag
fluent-plugin-concat waited for the message which came without partial_message from stopped to stick together the message for further transfer
Signed-off-by: Alexei Margasov [email protected]