You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2017/06/09 07:17:18 UTC

[jira] [Updated] (IGNITE-5458) Add CacheKeyConfiguration to CacheConfiguration

     [ https://issues.apache.org/jira/browse/IGNITE-5458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Ozerov updated IGNITE-5458:
------------------------------------
    Description: 
Currently affinity column of certain type is not known on startup, as types are registered dynamically. For this reason affinity column could be resolved incorrectly if needed before type is registered. E.g. this is the case for our H2 tables, which need affinity key column on startup.

This could be resolved by setting {{IgniteConfiguration.cacheKeyConfiguration}} property, which maps type name to affinity key column name. However, this mechanism is not flexible enough because mappings cannot be changed in runtime.

We should add similar property to cache configuration and use it to resolve affinity column. Ideally, affinity key should be removed from {{BinaryType}} at all.

Discussion on the dev list: https://mail-archives.apache.org/mod_mbox/ignite-dev/201706.mbox/browser

  was:
Currently affinity column of certain type is not known on startup, as types are registered dynamically. For this reason affinity column could be resolved incorrectly if needed before type is registered. E.g. this is the case for our H2 tables, which need affinity key column on startup.

This could be resolved by setting {{IgniteConfiguration.cacheKeyConfiguration}} property, which maps type name to affinity key column name. However, this mechanism is not flexible enough because mappings cannot be changed in runtime.

We should add similar property to cache configuration and use it to resolve affinity column. Ideally, affinity key should be removed from {{BinaryType}} at all.


> Add CacheKeyConfiguration to CacheConfiguration
> -----------------------------------------------
>
>                 Key: IGNITE-5458
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5458
>             Project: Ignite
>          Issue Type: Task
>          Components: cache
>            Reporter: Vladimir Ozerov
>            Assignee: Vladimir Ozerov
>             Fix For: 2.1
>
>
> Currently affinity column of certain type is not known on startup, as types are registered dynamically. For this reason affinity column could be resolved incorrectly if needed before type is registered. E.g. this is the case for our H2 tables, which need affinity key column on startup.
> This could be resolved by setting {{IgniteConfiguration.cacheKeyConfiguration}} property, which maps type name to affinity key column name. However, this mechanism is not flexible enough because mappings cannot be changed in runtime.
> We should add similar property to cache configuration and use it to resolve affinity column. Ideally, affinity key should be removed from {{BinaryType}} at all.
> Discussion on the dev list: https://mail-archives.apache.org/mod_mbox/ignite-dev/201706.mbox/browser



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)