ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Karachentsev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-5795) @AffinityKeyMapped ignored if QueryEntity used
Date Thu, 20 Jul 2017 15:54:00 GMT
Dmitry Karachentsev created IGNITE-5795:

             Summary: @AffinityKeyMapped ignored if QueryEntity used
                 Key: IGNITE-5795
                 URL: https://issues.apache.org/jira/browse/IGNITE-5795
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Dmitry Karachentsev
             Fix For: 2.2

When cache configured with QueryEntity and used key type with @AffinityKeyMapped field, it
will be ignored and wrong partition calculated. This happens because QueryEntity processing
precedes key type registering in binary meta cache. On that step CacheObjectBinaryProcessorImpl#affinityKeyField
called and unable to resolve type, so null returned and null putted in affKeyFields.

On next put/get operation CacheObjectBinaryProcessorImpl#affinityKeyField will return null
from affKeyFields, but should be affinity key field.

This message was sent by Atlassian JIRA

View raw message