You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: LogMessageWaitStrategy erroneously assumes each log frame contains a complete log line #5843
LogMessageWaitStrategy uses a LogContainerCmd to follow logs.
The regex is applied to every OutputFrame that is processed by FrameConsumerResultCallback. FrameConsumerResultCallback consumes STDOUT or STDERR stream types via processOtherFrame.
Problem: processOtherFrame passes the content of the com.github.dockerjava.api.model.Frame 1-to-1 to the consumer without doing any processing of log lines (like processRawFrame > normalizeLogLines).
This would only work if the Frame contains a complete log message and not a partial log message.
We reproduced this multiple times. See the log output for one example.
When using a WaitAllStrategy with more LogMessageWaitStrategy, this is more likely to happen because the second log wait strategy only attaches to the log after the first finished, and then of course gets a lot more data at once.
Relevant log output
2022-09-13 00:34:58,297 DEBUG - STDOUT: 2022-09-12 22:34:56,408 INFO - Extension "HiveMQ Enterprise Extension for Kafka" version 4.9.0-SNAPSHOT started succes
2022-09-13 00:34:58,313 DEBUG - STDOUT: sfully.
Activity
SgtSilvio commentedon Sep 18, 2022
Related: #643
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Fixes testcontainers#5843: log consumers are now called with exactly …
Log consumers are now called with exactly one complete log line (#5854)