You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Kirill Shirokov (JIRA)" <ji...@apache.org> on 2017/12/23 18:19:00 UTC

[jira] [Created] (IGNITE-7293) "BinaryObjectException: Cannot find schema for object with compact footer" thrown if not null field defined

Kirill Shirokov created IGNITE-7293:
---------------------------------------

             Summary: "BinaryObjectException: Cannot find schema for object with compact footer" thrown if not null field defined
                 Key: IGNITE-7293
                 URL: https://issues.apache.org/jira/browse/IGNITE-7293
             Project: Ignite
          Issue Type: Bug
          Components: sql
    Affects Versions: 2.3
            Reporter: Kirill Shirokov


If the following test:

org.apache.ignite.internal.processors.cache.index.H2DynamicTableSelfTest#testAffinityKey

is modified to include not null key column in Person2 table:

{{                execute("CREATE TABLE \"Person2\" (\"id\" int, \"city\" varchar," +
                    " \"name\" varchar, \"surname\" varchar, \"age\" int {color:red}not null{color}, PRIMARY KEY (\"id\", \"city\")) WITH " +
                    "wrap_key,wrap_value,\"template=cache,affinity_key='city'\"");}}

The test fails with the following stack trace:

{{class org.apache.ignite.binary.BinaryObjectException: Cannot find schema for object with compact footer [typeId=-1199546406, schemaId=0]

	at org.apache.ignite.internal.binary.BinaryReaderExImpl.getOrCreateSchema(BinaryReaderExImpl.java:2020)
	at org.apache.ignite.internal.binary.BinaryObjectImpl.createSchema(BinaryObjectImpl.java:668)
	at org.apache.ignite.internal.binary.BinaryFieldImpl.fieldOrder(BinaryFieldImpl.java:284)
	at org.apache.ignite.internal.binary.BinaryFieldImpl.value(BinaryFieldImpl.java:106)
	at org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.fieldValue(QueryBinaryProperty.java:243)
	at org.apache.ignite.internal.processors.query.property.QueryBinaryProperty.value(QueryBinaryProperty.java:139)
	at org.apache.ignite.internal.processors.query.QueryTypeDescriptorImpl.validateKeyAndValue(QueryTypeDescriptorImpl.java:512)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.rowToKeyValue(DmlStatementsProcessor.java:1031)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.doInsert(DmlStatementsProcessor.java:877)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.processDmlSelectResult(DmlStatementsProcessor.java:438)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.executeUpdateStatement(DmlStatementsProcessor.java:420)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.updateSqlFields(DmlStatementsProcessor.java:194)
	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.updateSqlFieldsDistributed(DmlStatementsProcessor.java:229)
	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.queryDistributedSqlFields(IgniteH2Indexing.java:1568)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor$6.applyx(GridQueryProcessor.java:1983)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor$6.applyx(GridQueryProcessor.java:1979)
	at org.apache.ignite.internal.util.lang.IgniteOutClosureX.apply(IgniteOutClosureX.java:36)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.executeQuery(GridQueryProcessor.java:2465)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.querySqlFieldsNoCache(GridQueryProcessor.java:1988)
	at org.apache.ignite.internal.processors.query.GridQueryProcessor.querySqlFieldsNoCache(GridQueryProcessor.java:1944)
	at org.apache.ignite.internal.processors.cache.index.H2DynamicTableSelfTest.checkAffinityKey(H2DynamicTableSelfTest.java:1375)
	at org.apache.ignite.internal.processors.cache.index.H2DynamicTableSelfTest.testAffinityKey(H2DynamicTableSelfTest.java:1318)
}}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)