-
Notifications
You must be signed in to change notification settings - Fork 84
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
Periodically getting FunctionClauseError
from Mariaex.Messages.decode_msg(<<5>>, :running)
#151
Comments
We're also getting similar function clause errors with
These errors are happening fairly often (a few times per hour) and I'd love to see this fixed. I can pitch in, if guidance could be provided. I don't really know the MySQL protocol so I'm not sure what to do with this kind of message. Is it safe to add a |
Hi! @myronmarston Do you have any test case with a mock data, how to reproduce it or it really happen somewhere spontaneously during long run? |
Unfortunately, I have no idea how to reproduce this. I've only ever seen it in our production logs, and it's not clear what queries were running when this happens. |
@myronmarston Can you check the logs, please and check, if the stacktraces always points to some disconnect routine ( |
Do you mean check to see if |
@myronmarston For example, yes. |
I looked through our prod logs and it looks like that line is always part of the stack trace. |
Its not safe to do a socket recv in the disconnect callback of DBConnection unless there's a |
We have similar issues, @fishcakez any hints how to pin point the issue? |
After digging in a bit more I found out that we actually get one more error 2-5 seconds earlier always before this decode issue, something like:
So probably resolving this should resolve the decode issue right? |
@driv3r the timeout issue is described in #162 and disconnect recv is at mariaex/lib/mariaex/protocol.ex Line 224 in f4fe6f6
|
We are still getting this periodically (usually a time or two a day) and it would be great to see this get fixed. I often jump into open source projects we use to fix issues we face but I don't really understand how to fix this one. Anything I can do to help? |
On our servers we get the timeout issue and the get decode_msg called with logdump
I have no idea what that message means nor what the library is supposed to do at that point otherwise I would submit a pull request right this second, however, I will go look it up and see if I can contribute anything - especially since this problem dings us pretty hard every few days |
We are also seeing this after a timeout talking to MySQL.
|
This should allow us to remove show_sensitive_data_on_connection_error as an option, as the sensitive data won't be in the main process' state (just a pid). There are also cases where passwords are still dumped, e.g. when we hit xerions#151 .
I periodically get this in my logs:
Looks like there's some message mariaex isn't able to handle?
The text was updated successfully, but these errors were encountered: