-
Notifications
You must be signed in to change notification settings - Fork 685
IndexError
in TableMapEvent
#36
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
Comments
what caused this to happen? a rotation maybe? |
I don't know what caused it, knows nothing more than the packet info pasted above. It happened in our production server, very rare but it happened randomly. And I just bypass the table map event cause I don't really care about it. |
The problem is probably that you try to create events for a table which is already dropped. Just figured out that I have the same problem. The application creates a table and after finishing the work it gets dropped. This module tries afterwards to decode the table data and fails, because it cannot read the information out of the information_schema. I am currently thinking of a fix but haven't figured out a clean way, maybe @noplay can jump in |
You are right i'm not a big fan of your fix, but i didn't see a good way to do that. |
@bjoernhaeuser my tmp fix is very like your fix. refer to lxyu@a384964 I only add one line to skip it, though. |
@noplay can we can up with a more elegant solution? What are your thoughts? |
No idea about a better way :( Perhaps we can merge and add an issue about that as a reminder. |
I will come up with a pull request today. |
Hi, looks like this issue has been open for a while... 😁 We've recently got this similar exception on our production env:
I guess the issue is still open `cause there's no fix yet... |
@bjoernhaeuser @lxyu what did you think? I can add the fix you proposed if you didn't have another idea since. |
@noplay No idea from me :-( |
0.6 has been released with the fix from @bjoernhaeuser |
More info:
And the
self.packet.read_length_coded_binary()
at L485 returns 4.Put this line in the first line of TableMapEvent init shows this:
The text was updated successfully, but these errors were encountered: