ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-4026) BinaryObjectBuilder.build() can fail if one of the fields is Externalizable
Date Tue, 04 Oct 2016 20:36:20 GMT
Valentin Kulichenko created IGNITE-4026:
-------------------------------------------

             Summary: BinaryObjectBuilder.build() can fail if one of the fields is Externalizable
                 Key: IGNITE-4026
                 URL: https://issues.apache.org/jira/browse/IGNITE-4026
             Project: Ignite
          Issue Type: Bug
          Components: binary
    Affects Versions: 1.7
            Reporter: Valentin Kulichenko
            Priority: Critical
             Fix For: 1.8
         Attachments: BuilderTest.java

Test reproducing the issue is attached.

Scenario is the following:
# Create a binary object with an {{Externalizable}} field.
# Create a builder from this object using {{toBuilder()}} method.
# Do some modifications.
# Call {{build()}}, get exception below.

{noformat}
Exception in thread "main" class org.apache.ignite.binary.BinaryObjectException: Invalid flag
value: -2
	at org.apache.ignite.internal.binary.builder.BinaryBuilderReader.parseValue(BinaryBuilderReader.java:761)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.serializeTo(BinaryObjectBuilderImpl.java:281)
	at org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl.build(BinaryObjectBuilderImpl.java:183)
	at BuilderTest.main(BuilderTest.java:16)
{noformat}



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

Mime
View raw message