Denis Magda created IGNITE-1542:
-----------------------------------
Summary: 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)