You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Denis Magda (JIRA)" <ji...@apache.org> on 2015/09/25 06:21:05 UTC
[jira] [Closed] (IGNITE-1542) MetaDataEnabled flag is partially
ignored when set in PortableTypeConfiguration
[ https://issues.apache.org/jira/browse/IGNITE-1542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Magda closed IGNITE-1542.
-------------------------------
> MetaDataEnabled flag is partially ignored when set in PortableTypeConfiguration
> -------------------------------------------------------------------------------
>
> Key: IGNITE-1542
> URL: https://issues.apache.org/jira/browse/IGNITE-1542
> Project: Ignite
> Issue Type: Bug
> Components: general
> Affects Versions: ignite-1.4
> Reporter: Denis Magda
> Assignee: Denis Magda
> Priority: Critical
> Fix For: ignite-1.5
>
>
> Define a type using {{PortableTypeConfiguration}} and disable meta data for the type by setting {{metaDataEnabled}} flag to false.
> Then set this portable type configuration in {{PortableMarshaller's}} configuration list and start a node.
> Despite of the fact that the metadata is disable for the type it will be added to the metadata handler.
> The fix is trivial.
> Change last line of {{PortableContext.registerUserType()}} to:
> {noformat}
> if (metadataenabled)
> metaHnd.addMeta(id, new PortableMetaDataImpl(typeName, fieldsMeta, affKeyFieldName));
> {noformat}
> Add tests.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)