ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandr Kuramshin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-4485) CacheJdbcPojoStore returns unexpected BinaryObject upon loadCache()
Date Thu, 22 Dec 2016 18:47:58 GMT
Alexandr Kuramshin created IGNITE-4485:
------------------------------------------

             Summary: CacheJdbcPojoStore returns unexpected BinaryObject upon loadCache()
                 Key: IGNITE-4485
                 URL: https://issues.apache.org/jira/browse/IGNITE-4485
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 1.8, 1.7
            Reporter: Alexandr Kuramshin


When calling loadCache(IgniteBiInClosure clo, Object... args) sometimes we get unexpected
values of type BinaryObject in IgniteBiInClosure.apply(), whereas POJO value kind was registered
previously for well known key type.

It's so because getOrCreateCacheMappings returns HashMap which resorts entity mappings for
the same key but with different value kind. When BinaryMarshaller is used, then this map contains
two mappings for the same key - POJO and BINARY.

Possible fix is to use LinkedHashMap, then POJO mapping will be picked first.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message