[
https://issues.apache.org/jira/browse/IGNITE-29348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152919#comment-18152919
]
Ignite TC Bot commented on IGNITE-29348:
----------------------------------------
{panel:title=Branch: [pull/13889/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/13889/head] Base: [master] : New Tests
(7)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Cache 1{color} [[tests
6|https://ci2.ignite.apache.org/viewLog.html?buildId=9533249]]
* {color:#013220}IgniteBinaryCacheTestSuite:
IgniteCacheTxNearEnabledInvokeTest.testInvokeChainKeepsIntermediateValueBinary
- PASSED{color}
* {color:#013220}IgniteBinaryCacheTestSuite:
IgniteCacheTxInvokeTest.testInvokeChainStopsOnErrorOnPrimaryAndBackup -
PASSED{color}
* {color:#013220}IgniteBinaryCacheTestSuite:
IgniteCacheTxInvokeTest.testInvokeChainKeepsIntermediateValueBinary -
PASSED{color}
* {color:#013220}IgniteBinaryCacheTestSuite:
IgniteCacheTxNearEnabledInvokeTest.testInvokeInsertAfterRemoveInSameTransaction
- PASSED{color}
* {color:#013220}IgniteBinaryCacheTestSuite:
IgniteCacheTxNearEnabledInvokeTest.testInvokeChainStopsOnErrorOnPrimaryAndBackup
- PASSED{color}
* {color:#013220}IgniteBinaryCacheTestSuite:
IgniteCacheTxInvokeTest.testInvokeInsertAfterRemoveInSameTransaction -
PASSED{color}
{color:#00008b}Calcite SQL 1{color} [[tests
1|https://ci2.ignite.apache.org/viewLog.html?buildId=9533274]]
*
{color:#013220}org.apache.ignite.internal.processors.tx.SqlTransactionsDmlTest.testInsertAfterDeleteInSameTransaction
- PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=9533391&buildTypeId=IgniteTests24Java8_RunAll]
{color:#ffffff}tcbot-analysis-comment chainBuildId=9533391
rerunBuildIds=9533896{color}
> Chained cache invoke() calls mishandle removal within a transaction
> -------------------------------------------------------------------
>
> Key: IGNITE-29348
> URL: https://issues.apache.org/jira/browse/IGNITE-29348
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 2.18
> Reporter: Kirill Tkalenko
> Assignee: Kirill Tkalenko
> Priority: Major
> Labels: ignite-2
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When one invoke() removes an entry, the next invoke() on the same key in the
> same transaction still sees the entry as present.
> *KV reproduction*
> Use a transactional cache.
> {code:java}
> cache.put(1, 10);
> try (Transaction tx = ignite.transactions().txStart(PESSIMISTIC,
> READ_COMMITTED)){
> cache.invoke(1, (entry, args) ->{ entry.remove(); return null; });
> boolean exists = cache.invoke(1, (entry, args) -> entry.exists()); //
> Expected false, got true.
> }
> {code}
> *Calcite reproduction*
> On a transactional table t(id INT PRIMARY KEY, val INT) containing (1, 10),
> run both statements in the same transaction.
> {code:java}
> DELETE FROM t WHERE id = 1;
> INSERT INTO t VALUES (1, 20); – Expected success, got DUPLICATE_KEY.{code}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)