ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryabov Dmitrii (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-9209) GridDistributedTxMapping.toString() returns broken string
Date Tue, 07 Aug 2018 12:33:00 GMT
Ryabov Dmitrii created IGNITE-9209:

             Summary: 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

Something wrong with `GridDistributedTxMapping` when we try to get string representation by

It should looks like
GridDistributedTxMapping [entries=LinkedHashSet [/*values here*/], explicitLock=false, dhtVer=null,
last=false, nearEntries=0, clientFirst=false, node=cd268979-ccf2-4a4c-bfbb-f84060600000]
But currently it looks like
KeyCacheObjectImpl [part=1, val=1, hasValBytes=false]KeyCacheObjectImpl [part=1, val=1, hasValBytes=false],//
more text
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


            assertTrue("Wrong string: " + mapping, mapping.toString().startsWith("GridDistributedTxMapping


This message was sent by Atlassian JIRA

View raw message