You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ignite TC Bot (Jira)" <ji...@apache.org> on 2020/06/02 12:24:00 UTC

[jira] [Commented] (IGNITE-13096) Java thin client: Binary type schema is not registered for nested objects when CompactFooter is enabled

    [ https://issues.apache.org/jira/browse/IGNITE-13096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17123711#comment-17123711 ] 

Ignite TC Bot commented on IGNITE-13096:
----------------------------------------

{panel:title=Branch: [pull/7878/head] Base: [master] : No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=5354775&amp;buildTypeId=IgniteTests24Java8_RunAll]

> Java thin client: Binary type schema is not registered for nested objects when CompactFooter is enabled
> -------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-13096
>                 URL: https://issues.apache.org/jira/browse/IGNITE-13096
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When we first time marshal object, a binary type registration request is sent to the server. This request contains schemas for deserialization (deserialization without schema is not possible when CompactFooter is enabled). If the object contains references to objects of other types these types also sent to the server, but without schemas.
> Reproducer:
> {code:java}
> try (Ignite ignite = Ignition.start(Config.getServerConfiguration())) {
>     try (IgniteClient client = Ignition.startClient(new ClientConfiguration().setAddresses(Config.SERVER)
>         .setBinaryConfiguration(new BinaryConfiguration().setCompactFooter(true)))
>     ) {
>         IgniteCache<Integer, Person[]> igniteCache = ignite.getOrCreateCache(Config.DEFAULT_CACHE_NAME);
>         ClientCache<Integer, Person[]> clientCache = client.getOrCreateCache(Config.DEFAULT_CACHE_NAME);
>         Person[] val = new Person[] {new Person(1, "Joe")};
>         clientCache.put(1, val);
>         assertArrayEquals(val, igniteCache.get(1));
>     }
> }
> {code}
> Fails with exception:
> {noformat}
> Caused by: class org.apache.ignite.binary.BinaryObjectException: Cannot find schema for object with compact footer [typeName=org.apache.ignite.client.Person, typeId=1468224522, missingSchemaId=970781171, existingSchemaIds=[]]
>     at org.apache.ignite.internal.binary.BinaryReaderExImpl.getOrCreateSchema(BinaryReaderExImpl.java:2028) at org.apache.ignite.internal.binary.BinaryReaderExImpl.<init>(BinaryReaderExImpl.java:287)
>     at org.apache.ignite.internal.binary.BinaryReaderExImpl.<init>(BinaryReaderExImpl.java:186)
>     at org.apache.ignite.internal.binary.BinaryObjectImpl.reader(BinaryObjectImpl.java:830)
>     at org.apache.ignite.internal.binary.BinaryObjectImpl.deserializeValue(BinaryObjectImpl.java:793){noformat}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)