-
Notifications
You must be signed in to change notification settings - Fork 33
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
Getting "dump an error event: error_class=Fluent::Plugin::ConcatFilter::TimeoutError" #37
Comments
This is caused by race condition. I've fixed the race condition. Could you try #38 ? |
thanks, I'll check and get back |
still happening
|
Is this easy to reproduce? Could you show me minimal reproduce sequence? |
yes, it's reproducible all the time. I 'create' my containers, put in the rb file with your fix, then 'up' my containers.
Logging works for some time, issue happens when there're 5 log events, there's usually 1 event missing and timeout (in this case TestANV.1-1-5): TestANV.1-1-1 says hello with : NetconfClientInfo{username='TLS-CLIENT', sessionId=432, m_remoteHost='anv', m_remotePort='6524'} TestANV.1-1-3 says hello with : NetconfClientInfo{username='TLS-CLIENT', sessionId=431, m_remoteHost='anv', m_remotePort='6524'} TestANV.1-1-2 says hello with : NetconfClientInfo{username='TLS-CLIENT', sessionId=429, m_remoteHost='anv', m_remotePort='6524'} TestANV.1-1-4 says hello with : NetconfClientInfo{username='TLS-CLIENT', sessionId=430, m_remoteHost='anv', m_remotePort='6524'} |
Hmm, I could not reproduce with docker-compose and cat log file. log file is like following:
BTW, I noticed that your error message contains Could you take sigdump when timeout is occured? And one more question, do logging keep running after timeout? Do logging stop after timeout? |
That log event is just same with others, I don't know if the others have \r, let me know if you need any further info. Please find below sigdumps:
I can see logging has stopped after timeout. |
I want step by step reproducible sequence and full configuration to reproduce the issue.
Next, I want to know that logs sent from docker containers reach Fluentd in_forward or not. Another way, use filter_stdout like following.
|
Could you tell me following info?
|
Full config:
ok, will try with your config and get back. |
Got following result:
timeout for TestANV.1-1-1 but not TestANV.1-1-2 |
Thank you for your info.
This seems that If BTW, |
Could you try very simple configuration like following?
And, could you try without |
The background of using concat plugin is due to moby/moby#32923, our app might produce a long log with multiple lines and exceeds the limit 16KB of docker logging driver. In that case the log will be split and no longer in Json format, so I really need your plugin to help recover json format. Before using concat plugin we never observed timeout issue or log missing, as you can see the error is coming from Fluent::Plugin::ConcatFilter::TimeoutError: Good news is that it seems the app is just not logging anymore, concat plugin itself does not stop the log. Now my workaround is treating timeout logs as NORMAL, then I'm able to receive all events
My config is as below:
still in fluentd log I see flush timeout,
|
Thank you for background and good news!
Do the app keep logging? |
yes, app keeps logging. The workaround helps! |
I'm glad. Thanks! |
resolved. |
Hi team,
I'm using concat plugin v2.1.0 for my FluentD container, the config is as follow:
................................................
So my log event will indicate its start point with ---SL--- and endpoint with ---EL---&.
There's a Java app running in another container and use fluent logging driver.
Problem is I'm getting timeout flush for some random event, e.g:
As you can see the log event is complete, we don't wait for pieces of that event and concat. So I cannot understand why the timeout happened.
It occurs quite randomly, some time with TestANV.1-1-1, some time with TestANV.1-1-2 (I have 5 such entities).
Can some one please help?
The text was updated successfully, but these errors were encountered: