-
Notifications
You must be signed in to change notification settings - Fork 817
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
A bug in ByteArrayInputStream #34
Comments
That's insane! Thanks a lot for reporting. |
Incorporated in 0.1.3 (which should become available through Maven Central in the next 24h). |
Hi @shyiko , I have a question: what is the purpose of EventDeserializer.Deserializer and EventDataWrapper? private void afterEventDataDeserializerSet(EventType eventType) {
if (eventType == null || eventType == EventType.TABLE_MAP) {
EventDataDeserializer eventDataDeserializer = getEventDataDeserializer(EventType.TABLE_MAP);
if (eventDataDeserializer.getClass() != TableMapEventDataDeserializer.class &&
eventDataDeserializer.getClass() != EventDataWrapper.Deserializer.class) {
tableMapEventDataDeserializer = new EventDataWrapper.Deserializer(
new TableMapEventDataDeserializer(), eventDataDeserializer);
} else {
tableMapEventDataDeserializer = null;
}
} why do you pay special care to tableMapEventDataDeserializer in this method? |
misselvexu
pushed a commit
to misselvexu/mysql-binlog-connector-java
that referenced
this issue
Jul 5, 2021
…tearrayinputstream Optimize read operation on ByteArrayInputStream
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think
length = bytes.length >> 2
should belength = bytes.length >> 1
The text was updated successfully, but these errors were encountered: