-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
test_unix_stream_syslog fails at CI #2604
Comments
@ktff would you mind taking a look? Assuming it is, in fact, related to the shut down changes. |
It may be that the recent shutdown changes are supposed to help with thins, but they're not enough and some additional work has to be done at each But this seems like non-trivial stuff, and some |
It's a simpler issue. There are buffers/frame of bytes we received but haven't yet decoded in the source. In the I completely missed that detail while wiring Sources that have this buffer:
Sources that maybe have this buffer deep in some library:
FixModifying
Then all that remains is |
I wonder if the workaround I added to the buffering tests is relevant: |
Yes, it's probably the same issue. |
For sources in Also since there are buffers/log files in With that only sources with |
|
@MOZGIII The problem in that case is probably that the channel used for sending to the mock source has a buffer of 1 message. If that's true then the tests should only fail with difference of 1 event. |
From what I can tell, the tokio This makes me think that we should try to make sure the resource wrapped with |
I caught this error locally too, just wanted to mention it. |
The
test_unix_stream_syslog
occasionally fails at CI: https://github.com/timberio/vector/pull/2579/checks?check_run_id=674631518. This is from my docker-enabling branch, but there's nothing that suggests we should let this pass. On the contrary - this new setup is great because it uncovers this previously hidden problem.The failing assertion is this one: https://github.com/timberio/vector/blob/0a0f8d5b6478237d7402ca9e356c9ff4ea6f8497/tests/syslog.rs#L186
This is a rather odd issue. How I see it, the problem is that when the topology stops, the messages in the inner buffers aren't released properly. Isn't the new two-phase shutdown system supposed to help solve this issue?
There are other tests that fail in similar conditions - and the way we solved that was by adding a timeout, effectively muting the problem. But I think there's a real issue somewhere there, and we get to the bottom of it.
Related:
test_max_size
test is failing #2102The text was updated successfully, but these errors were encountered: