[jira] [Commented] (IGNITE-13170) Java thin client: Transactions functionality withLabel is broken

2020-06-22 Thread Ivan Daschinskiy (Jira)


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

Ivan Daschinskiy commented on IGNITE-13170:
---

[~alex_pl] Looks good to me, but because one test is a little bit rewrited, may 
be it is good idea to restart suite metioned test belongs to

> Java thin client: Transactions functionality withLabel is broken
> 
>
> Key: IGNITE-13170
> URL: https://issues.apache.org/jira/browse/IGNITE-13170
> Project: Ignite
>  Issue Type: Bug
>  Components: thin client
>Reporter: Aleksey Plekhanov
>Assignee: Aleksey Plekhanov
>Priority: Major
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Reproducer
> {code:java}
> @Test
> public void testTransactions1() throws Exception {
> try (Ignite ignite = Ignition.start(Config.getServerConfiguration());
>  IgniteClient client = Ignition.startClient(getClientConfiguration()))
> {
> ClientCache cache = client.createCache(new 
> ClientCacheConfiguration()
> .setName("cache")
> .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL));
> cache.put(1, "value1");
> try (ClientTransaction tx = 
> client.transactions().withLabel("asdasda").txStart()) {
> cache.put(1, "value2");
> }
> assertEquals("value1", cache.get(1));
> }
> }
> {code}
> Root cause: a new instance of transactions facade is created when 
> {{withLabel}} modificator is used. Transactions are registered in 
> {{threadLocTxUid}} map of this instance, but when any cache operation is 
> performed transaction is looked only at root {{threadLocTxUid}} map.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (IGNITE-13170) Java thin client: Transactions functionality withLabel is broken

2020-06-22 Thread Ignite TC Bot (Jira)


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

Ignite TC Bot commented on IGNITE-13170:


{panel:title=Branch: [pull/7951/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
[TeamCity *-- Run :: All* 
Results|https://ci.ignite.apache.org/viewLog.html?buildId=5409249buildTypeId=IgniteTests24Java8_RunAll]

> Java thin client: Transactions functionality withLabel is broken
> 
>
> Key: IGNITE-13170
> URL: https://issues.apache.org/jira/browse/IGNITE-13170
> Project: Ignite
>  Issue Type: Bug
>  Components: thin client
>Reporter: Aleksey Plekhanov
>Assignee: Aleksey Plekhanov
>Priority: Major
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> Reproducer
> {code:java}
> @Test
> public void testTransactions1() throws Exception {
> try (Ignite ignite = Ignition.start(Config.getServerConfiguration());
>  IgniteClient client = Ignition.startClient(getClientConfiguration()))
> {
> ClientCache cache = client.createCache(new 
> ClientCacheConfiguration()
> .setName("cache")
> .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL));
> cache.put(1, "value1");
> try (ClientTransaction tx = 
> client.transactions().withLabel("asdasda").txStart()) {
> cache.put(1, "value2");
> }
> assertEquals("value1", cache.get(1));
> }
> }
> {code}
> Root cause: a new instance of transactions facade is created when 
> {{withLabel}} modificator is used. Transactions are registered in 
> {{threadLocTxUid}} map of this instance, but when any cache operation is 
> performed transaction is looked only at root {{threadLocTxUid}} map.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)