You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by veris4crm <ve...@163.com> on 2017/11/06 08:57:01 UTC

Re: same cache cannot update twice in one transaction

Hi, val,is 2.3.0 version fix this problem? when I update to 2.3.0 and I get
IgniteSQLException:

Exception in thread "main" javax.cache.CacheException: class
org.apache.ignite.internal.processors.query.IgniteSQLException: Failed to
update some keys because they had been modified concurrently
[keys=[Ljava.lang.Object;@2d6f11]
	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 cn.eboss.paas.exec.TestDemo.reservedSku(TestDemo.java:104)
	at cn.eboss.paas.exec.TestDemo.main(TestDemo.java:149)
Caused by: class
org.apache.ignite.internal.processors.query.IgniteSQLException: Failed to
update some keys because they had been modified concurrently
[keys=[Ljava.lang.Object;@2d6f11]
	at
org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.checkUpdateResult(DmlStatementsProcessor.java:1171)
	at
org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.updateSqlFieldsDistributed(DmlStatementsProcessor.java:231)
	at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.queryDistributedSqlFields(IgniteH2Indexing.java:1453)
	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)
	... 4 more
Caused by: java.sql.SQLException: Failed to update some keys because they
had been modified concurrently [keys=[Ljava.lang.Object;@2d6f11]
	at
org.apache.ignite.internal.processors.cache.query.IgniteQueryErrorCode.createJdbcSqlException(IgniteQueryErrorCode.java:116)
	at
org.apache.ignite.internal.processors.query.h2.DmlStatementsProcessor.checkUpdateResult(DmlStatementsProcessor.java:1169)
	... 12 more



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: same cache cannot update twice in one transaction

Posted by veris4crm <ve...@163.com>.
OK,Thanks for reply.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: same cache cannot update twice in one transaction

Posted by vkulichenko <va...@gmail.com>.
No, this is not implemented yet. Here is the ticket where you can track the
progress: https://issues.apache.org/jira/browse/IGNITE-3478

-Val



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/