You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ignite TC Bot (JIRA)" <ji...@apache.org> on 2019/02/19 18:49:02 UTC

[jira] [Commented] (IGNITE-7113) "Key is missing from query" when creating table with key_type=java.lang.String

    [ https://issues.apache.org/jira/browse/IGNITE-7113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16772232#comment-16772232 ] 

Ignite TC Bot commented on IGNITE-7113:
---------------------------------------

{panel:title=--&gt; Run :: All: Possible Blockers|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}Platform .NET{color} [[tests 7|https://ci.ignite.apache.org/viewLog.html?buildId=3126556]]
* exe: Cache.CacheConfigurationTest
* exe: CreateCacheTest.TestCreateFromConfiguration - 0,0% fails in last 598 master runs.
* exe: CreateCacheTest.TestGetOrCreateFromConfiguration - 0,0% fails in last 598 master runs.
* exe: CacheQueriesTest.TestCustomKeyValueFieldNames - 0,0% fails in last 598 master runs.
* exe: CustomLoggerTest.TestQueryEntityValidation - 0,0% fails in last 592 master runs.
* exe: CacheQueriesTest.TestCustomKeyValueFieldNames - 0,0% fails in last 598 master runs.

{color:#d04437}MVCC Queries{color} [[tests 4|https://ci.ignite.apache.org/viewLog.html?buildId=3126519]]
* IgniteCacheMvccSqlTestSuite: CacheMvccPartitionedSqlCoordinatorFailoverTest.testSqlReadInsideTxInProgressCoordinatorFails_ReadDelay - 0,0% fails in last 70 master runs.
* IgniteCacheMvccSqlTestSuite: CacheMvccPartitionedSqlCoordinatorFailoverTest.testSqlReadInsideTxInProgressCoordinatorFails - 0,0% fails in last 70 master runs.

{color:#d04437}Platform .NET (Core Linux){color} [[tests 13|https://ci.ignite.apache.org/viewLog.html?buildId=3126557]]
* dll: CustomLoggerTest.TestQueryEntityValidation - 0,0% fails in last 586 master runs.

{color:#d04437}SPI{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=3126501]]
* IgniteSpiTestSuite: GridTcpCommunicationSpiConfigSelfTest.testLocalPortRange - 0,0% fails in last 422 master runs.

{color:#d04437}Queries 1{color} [[tests 5|https://ci.ignite.apache.org/viewLog.html?buildId=3126562]]
* IgniteBinaryCacheQueryTestSuite: IgniteCacheJoinQueryWithAffinityKeyTest.testJoinQueryWithAffinityKeyNotQueryField - 0,0% fails in last 416 master runs.
* IgniteBinaryCacheQueryTestSuite: SqlSystemViewsSelfTest.testQueryModes - 0,0% fails in last 416 master runs.
* IgniteBinaryCacheQueryTestSuite: IncorrectQueryEntityTest.testIncorrectQueryField - 0,0% fails in last 416 master runs.

{color:#d04437}SPI (URI Deploy){color} [[tests 2|https://ci.ignite.apache.org/viewLog.html?buildId=3126502]]
* IgniteUriDeploymentTestSuite: GridHttpDeploymentSelfTest.testDeployUndeploy2Files - 0,0% fails in last 257 master runs.
* IgniteUriDeploymentTestSuite: GridHttpDeploymentSelfTest.testSameContantFiles - 0,0% fails in last 257 master runs.

{color:#d04437}PDS (Indexing){color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=3126550]]
* IgnitePdsWithIndexingCoreTestSuite: IgnitePdsAtomicCacheHistoricalRebalancingTest.testTopologyChangesWithConstantLoad - 0,0% fails in last 424 master runs.

{color:#d04437}Cache 7{color} [[tests 4|https://ci.ignite.apache.org/viewLog.html?buildId=3126540]]
* IgniteCacheTestSuite7: CacheMetricsManageTest.testCacheApiClearStatistics - 0,0% fails in last 421 master runs.
* IgniteCacheTestSuite7: TxRollbackAsyncWithPersistenceTest.testSynchronousRollback - 0,0% fails in last 421 master runs.

{color:#d04437}Queries 2{color} [[tests 2|https://ci.ignite.apache.org/viewLog.html?buildId=3126496]]
* IgniteBinaryCacheQueryTestSuite2: IgniteCacheQueryNodeRestartSelfTest2.testRestarts - 0,0% fails in last 0 master runs.
* IgniteBinaryCacheQueryTestSuite2: DynamicIndexPartitionedAtomicConcurrentSelfTest.testConcurrentRebalance - 0,0% fails in last 421 master runs.

{color:#d04437}Cache 5{color} [[tests 5|https://ci.ignite.apache.org/viewLog.html?buildId=3126538]]
* IgniteCacheTestSuite5: ClusterStatePartitionedSelfTest.testDeactivationWithPendingLock - 0,0% fails in last 426 master runs.
* IgniteCacheTestSuite5: ClusterStateReplicatedSelfTest.testDeactivationWithPendingLock - 0,0% fails in last 426 master runs.
* IgniteCacheTestSuite5: IgniteCacheAtomicProtocolTest.testPutReaderUpdate1 - 0,0% fails in last 426 master runs.
* IgniteCacheTestSuite5: ClusterStatePartitionedSelfTest.testDeactivationWithPendingTransaction - 0,0% fails in last 426 master runs.
* IgniteCacheTestSuite5: ClusterStateReplicatedSelfTest.testDeactivationWithPendingTransaction - 0,0% fails in last 426 master runs.

{color:#d04437}Activate / Deactivate Cluster{color} [[tests 3|https://ci.ignite.apache.org/viewLog.html?buildId=3126475]]
* IgniteStandByClusterSuite: CacheBaselineTopologyTest.testClusterActiveWhileBaselineChanging - 0,0% fails in last 424 master runs.

{color:#d04437}MVCC Cache{color} [[tests 19|https://ci.ignite.apache.org/viewLog.html?buildId=3126517]]
* IgniteCacheMvccTestSuite: CacheMvccTransactionsTest.testSize - 0,0% fails in last 418 master runs.

{color:#d04437}Thin Client: Java{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=3126492]]
* ClientTestSuite: FunctionalTest.testCacheConfiguration - 0,0% fails in last 419 master runs.

{color:#d04437}Cache (Failover) 2{color} [[tests 1|https://ci.ignite.apache.org/viewLog.html?buildId=3126527]]
* IgniteCacheFailoverTestSuite2: CacheAsyncOperationsFailoverTxTest.testPutAllAsyncFailover - 0,0% fails in last 423 master runs.

{color:#d04437}Cache 6{color} [[tests 0 TIMEOUT , Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=3126539]]

{color:#d04437}Thin client: PHP{color} [[tests 0 Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=3126520]]

{color:#d04437}Thin client: Python{color} [[tests 0 Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=3126563]]

{color:#d04437}Hibernate 5.3{color} [[tests 0 Exit Code |https://ci.ignite.apache.org/viewLog.html?buildId=3126569]]

{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=3126586&amp;buildTypeId=IgniteTests24Java8_RunAll]

> "Key is missing from query" when creating table with key_type=java.lang.String
> ------------------------------------------------------------------------------
>
>                 Key: IGNITE-7113
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7113
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 2.3
>            Reporter: Ilya Kasnacheev
>            Assignee: Pavel Kuznetsov
>            Priority: Major
>              Labels: sql-stability
>         Attachments: IgniteStringKeyTest.java
>
>
> When creating a table of
> {code}
> CREATE TABLE IF NOT EXISTS TableWithStringKey (
>       ID VARCHAR PRIMARY KEY,
>       DataNodeId VARCHAR
> ) WITH "backups=1, cache_name=TableWithStringKey, atomicity=transactional, key_type=java.lang.String, value_type=TableWithStringKey"
> {code}
> and attempting an insert later
> {code}
> INSERT INTO TableWithStringKey (ID, DataNodeId) VALUES ('ref2', 'src2')
> {code}
> There's suddently an exception
> {code}
> javax.cache.CacheException: class org.apache.ignite.internal.processors.query.IgniteSQLException: Failed to execute DML statement [stmt=INSERT INTO TableWithStringKey (ID, DataNodeId) VALUES ('ref2', 'src2'), params=null]
> 	at org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.query(IgniteCacheProxyImpl.java:597)
> 	at org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.query(IgniteCacheProxyImpl.java:560)
> 	at org.apache.ignite.internal.processors.cache.GatewayProtectedCacheProxy.query(GatewayProtectedCacheProxy.java:382)
> 	at com.gridgain.reproducer.IgniteStringKeyTest.insertTest(IgniteStringKeyTest.java:34)
> 	... 24 more
> Caused by: class org.apache.ignite.internal.processors.query.IgniteSQLException: Failed to execute DML statement [stmt=INSERT INTO TableWithStringKey (ID, DataNodeId) VALUES ('ref2', 'src2'), params=null]
> 	at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.queryDistributedSqlFields(IgniteH2Indexing.java:1459)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor$5.applyx(GridQueryProcessor.java:1909)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor$5.applyx(GridQueryProcessor.java:1907)
> 	at org.apache.ignite.internal.util.lang.IgniteOutClosureX.apply(IgniteOutClosureX.java:36)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor.executeQuery(GridQueryProcessor.java:2445)
> 	at org.apache.ignite.internal.processors.query.GridQueryProcessor.querySqlFields(GridQueryProcessor.java:1914)
> 	at org.apache.ignite.internal.processors.cache.IgniteCacheProxyImpl.query(IgniteCacheProxyImpl.java:585)
> 	... 27 more
> Caused by: class org.apache.ignite.IgniteCheckedException: Key is missing from query
> 	at org.apache.ignite.internal.processors.query.h2.dml.UpdatePlanBuilder.createSupplier(UpdatePlanBuilder.java:369)
> 	at org.apache.ignite.internal.processors.query.h2.dml.UpdatePlanBuilder.planForInsert(UpdatePlanBuilder.java:211)
> 	at org.apache.ignite.internal.processors.query.h2.dml.UpdatePlanBuilder.planForStatement(UpdatePlanBuilder.java:98)
> 	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.getPlanForStatement(DmlStatementsProcessor.java:473)
> 	at org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.updateSqlFields(DmlStatementsProcessor.java:170)
> 	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:1453)
> 	... 33 more
> {code}
> that goes away if you remove "key_type=java.lang.String"
> I'm attaching a reproducer class.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)