[
https://issues.apache.org/jira/browse/IGNITE-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15767325#comment-15767325
]
Valentin Kulichenko commented on IGNITE-4109:
---------------------------------------------
Dmitry, we write zero type ID and full class name in case we want to register a
new class, but there is a ongoing exchange at the time. This is done to avoid
deadlocks and must happen very rarely indeed. It's OK if it's reproduced only
in a synthetic test.
> BinaryType.isEnum() throws an exception if typeId==0
> ----------------------------------------------------
>
> Key: IGNITE-4109
> URL: https://issues.apache.org/jira/browse/IGNITE-4109
> Project: Ignite
> Issue Type: Bug
> Components: binary
> Affects Versions: 1.7
> Reporter: Valentin Kulichenko
> Assignee: Dmitry Karachentsev
> Fix For: 2.0
>
>
> If {{typeId==0}} and full class name is written in the binary format,
> {{BinaryType.isEnum()}} method fails with the exception:
> {noformat}
> Caused by: org.apache.ignite.binary.BinaryObjectException: Failed to get
> binary type details [typeId=0]
> at
> org.apache.ignite.internal.binary.BinaryTypeProxy.target(BinaryTypeProxy.java:99)
> ~[ignite-core-1.6.7.jar:1.6.7]
> at
> org.apache.ignite.internal.binary.BinaryTypeProxy.isEnum(BinaryTypeProxy.java:86)
> ~[ignite-core-1.6.7.jar:1.6.7]
> {noformat}
> This happens because {{BinaryTypeProxy.target()}} method ignores this case.
> If {{typeId==0}}, It should look up full class name from the object and
> convert it to the actual type ID before trying to fetch metadata.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)