[
https://issues.apache.org/jira/browse/IGNITE-26753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18031218#comment-18031218
]
Ignite TC Bot commented on IGNITE-26753:
----------------------------------------
{panel:title=Branch: [pull/12434/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/12434/head] Base: [master] : New Tests
(1)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Cache 10{color} [[tests
1|https://ci2.ignite.apache.org/viewLog.html?buildId=8656441]]
* {color:#013220}IgniteCacheTestSuite10:
CommunicationMessageDelayTest.testTxConsistencyAfterTimeout1PC - PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=8656550&buildTypeId=IgniteTests24Java8_RunAll]
> Inconsistent behaviour on concurrent commit and timout with 1PC
> ----------------------------------------------------------------
>
> Key: IGNITE-26753
> URL: https://issues.apache.org/jira/browse/IGNITE-26753
> Project: Ignite
> Issue Type: Bug
> Reporter: Aleksey Plekhanov
> Assignee: Aleksey Plekhanov
> Priority: Major
> Labels: ise
> Time Spent: 1h
> Remaining Estimate: 0h
>
> In case of one-phase-commit we have inconsistent behaviour, when transaction
> is commiting and timed out concurrently. User can get transaction timeout
> exception on commit, but tx still will be commited.
> Reproducer:
> {code:java}
> public void testConsistencyAfterTimeout1PC() throws Exception {
> IgniteEx srv = startGrid(0);
> IgniteEx client = startClientGrid(1);
> long txTimout = 1_000L;
> IgniteCache<Object, Object> cache = client.getOrCreateCache(new
> CacheConfiguration<>(DEFAULT_CACHE_NAME)
> .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL));
> Transaction tx = client.transactions().txStart(PESSIMISTIC,
> REPEATABLE_READ, txTimout, 0);
> cache.put(0, 0);
> DelayingTcpCommunicationSpi.delay(srv, GridNearTxPrepareResponse.class, 2
> * txTimout);
> try {
> tx.commit();
> assertTrue(cache.containsKey(0));
> } catch (Exception e) {
> assertFalse(cache.containsKey(0));
> }
> }
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)