ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Pavlov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-6554) Atomic cache remove operations are logged in WAL as update records
Date Tue, 03 Oct 2017 17:17:00 GMT
Dmitriy Pavlov created IGNITE-6554:
--------------------------------------

             Summary: Atomic cache remove operations are logged in WAL as update records
                 Key: IGNITE-6554
                 URL: https://issues.apache.org/jira/browse/IGNITE-6554
             Project: Ignite
          Issue Type: Bug
            Reporter: Dmitriy Pavlov
            Assignee: Alexey Goncharuk
            Priority: Blocker
             Fix For: 2.3


Create cache with atomicity mode CacheAtomicityMode ATOMIC 
and perform put remove for one cache entry
{noformat}
 for (int i = 0; i < 10; i++) {

                cache.put(i, new Organization(i, "Organization-" + i));

                if (i % 2 == 0)
                    cache.put(i, new Organization(i, "Organization-updated-" + i));

                if (i % 5 == 0)
                    cache.remove(i);
            }
{noformat}

Actual standalone WAL iterator output is
{noformat}
[2017-10-03 20:13:38,920][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 0; Value: Organization{key=0,
name='Organization-0'}
[2017-10-03 20:13:38,920][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 0; Value: Organization{key=0,
name='Organization-updated-0'}
[2017-10-03 20:13:38,920][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 1; Value: Organization{key=1,
name='Organization-1'}
[2017-10-03 20:13:38,920][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 2; Value: Organization{key=2,
name='Organization-2'}
[2017-10-03 20:13:38,920][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 2; Value: Organization{key=2,
name='Organization-updated-2'}
[2017-10-03 20:13:38,921][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 3; Value: Organization{key=3,
name='Organization-3'}
[2017-10-03 20:13:38,921][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 4; Value: Organization{key=4,
name='Organization-4'}
[2017-10-03 20:13:38,921][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 4; Value: Organization{key=4,
name='Organization-updated-4'}
[2017-10-03 20:13:38,921][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 5; Value: Organization{key=5,
name='Organization-5'}
[2017-10-03 20:13:38,921][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 6; Value: Organization{key=6,
name='Organization-6'}
[2017-10-03 20:13:38,921][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 6; Value: Organization{key=6,
name='Organization-updated-6'}
[2017-10-03 20:13:38,921][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 7; Value: Organization{key=7,
name='Organization-7'}
[2017-10-03 20:13:38,922][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 8; Value: Organization{key=8,
name='Organization-8'}
[2017-10-03 20:13:38,922][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 8; Value: Organization{key=8,
name='Organization-updated-8'}
[2017-10-03 20:13:38,922][INFO ][test-runner-#1%reader.IgniteWalReaderTest%][root] //Entry
operation UPDATE; cache Id76454884; under transaction: null; Key: 9; Value: Organization{key=9,
name='Organization-9'}

{noformat}

Actual WAL content loaded by standalone WAL iterator

For TRANSACTIONAL AtomicityMode same test is passing





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message