You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Aleksey Plekhanov (Jira)" <ji...@apache.org> on 2020/02/05 14:13:00 UTC

[jira] [Created] (IGNITE-12625) Thin client: Marshaling/unmarshaling of objects performed twice

Aleksey Plekhanov created IGNITE-12625:
------------------------------------------

             Summary: Thin client: Marshaling/unmarshaling of objects performed twice
                 Key: IGNITE-12625
                 URL: https://issues.apache.org/jira/browse/IGNITE-12625
             Project: Ignite
          Issue Type: Bug
          Components: binary, thin client
            Reporter: Aleksey Plekhanov


For each thin client cache operation marshaling/unmarshaling of objects performed twice. For example, cache "put" operation marshal object on the client-side, then unmarshal object (with keep binaries) on the server-side and marshal it again before putting it to the cache. It causes some undesirable effects. For example, references to the same binary object in a collection ( {{new ArrayList(Arrays.asList(person, person))}} ) deserialized as different objects. Also, with binary object full byte array of this object is marshaled, but object takes only some part of this array, it causes size overhead for storing these objects.

To avoid double marshalling we could pass byte array from request content to cache directly (for example using {{CacheObject}}), but we don't have object size in thin client protocol, so in any case, we need to traverse the objects. Also, we don't have the ability to get {{CacheObject}} from the cache now, so such an approach will only work in one way, for "put" operations, but not for "get" operations.



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