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

Ryabov Dmitrii commented on IGNITE-9209:
----------------------------------------

[~agoncharuk], can you take a look for this fix? Tests fails as in the master 
branch, except 1 [suspicious 
test|https://ci.ignite.apache.org/project.html?projectId=IgniteTests24Java8&buildTypeId=&tab=testDetails&testNameId=1043721422421344229&order=TEST_STATUS_DESC&branch_IgniteTests24Java8=__all_branches__&itemsCount=50]
 but on the second suite run it was successfully finished.

> GridDistributedTxMapping.toString() returns broken string
> ---------------------------------------------------------
>
>                 Key: IGNITE-9209
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9209
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Ryabov Dmitrii
>            Assignee: Ryabov Dmitrii
>            Priority: Minor
>
> Something wrong with `GridDistributedTxMapping` when we try to get string 
> representation by `GridToStringBuilder`.
> It should looks like
> {noformat}
> GridDistributedTxMapping [entries=LinkedHashSet [/*values here*/], 
> explicitLock=false, dhtVer=null, last=false, nearEntries=0,/*more text*/]
> {noformat}
> But currently it looks like
> {noformat}
> KeyCacheObjectImpl [part=1, val=1, hasValBytes=false]KeyCacheObjectImpl 
> [part=1, val=1, hasValBytes=false],// more text
> {noformat}
> Reproducer:
> {code:java}
> public class GridToStringBuilderSelfTest extends GridCommonAbstractTest {
>     /**
>      * @throws Exception
>      */
>     public void testGridDistributedTxMapping() throws Exception {
>         IgniteEx ignite = startGrid(0);
>         IgniteCache<Integer, Integer> cache = 
> ignite.createCache(defaultCacheConfiguration());
>         try (Transaction tx = ignite.transactions().txStart()) {
>             cache.put(1, 1);
>             GridDistributedTxMapping mapping = new 
> GridDistributedTxMapping(grid(0).localNode());
>             assertTrue("Wrong string: " + mapping, 
> mapping.toString().startsWith("GridDistributedTxMapping ["));
>             
> mapping.add(((TransactionProxyImpl)tx).tx().txState().allEntries().stream().findAny().get());
>             assertTrue("Wrong string: " + mapping, 
> mapping.toString().startsWith("GridDistributedTxMapping ["));
>         }
>         stopAllGrids();
>     }
> {code}



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

Reply via email to