[JBoss JIRA] (ISPN-5653) keySet().iterator() does not propagate flags to remove()
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/ISPN-5653?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on ISPN-5653:
-----------------------------------------------
Dave Stahl <dstahl(a)redhat.com> changed the Status of [bug 1252576|https://bugzilla.redhat.com/show_bug.cgi?id=1252576] from POST to CLOSED
> keySet().iterator() does not propagate flags to remove()
> --------------------------------------------------------
>
> Key: ISPN-5653
> URL: https://issues.jboss.org/browse/ISPN-5653
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 7.2.3.Final, 8.0.0.Beta2
> Reporter: Radim Vansa
> Assignee: William Burns
> Fix For: 8.0.0.Beta3, 7.2.4.Final, 8.0.0.Final
>
>
> Calling {{remove()}} on iterator obtained through keySet() does not propagate flags from the original (decorated) cache. Test case (should go into BaseEntryRetrieverTest):
> {code}
> @Test
> public void simpleTestWithFlags() {
> Map<Object, String> values = putValuesInCache();
> final Cache<Object, Object> cache = cache(0, CACHE_NAME);
> cache.getAdvancedCache().addInterceptor(new BaseCustomInterceptor() {
> @Override
> public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable {
> assertTrue(command.hasFlag(Flag.SKIP_CACHE_STORE));
> return super.visitRemoveCommand(ctx, command);
> }
> }, 0);
> for (Iterator it = cache(0, CACHE_NAME).getAdvancedCache().withFlags(Flag.SKIP_CACHE_STORE).keySet().iterator(); it.hasNext();) {
> assertTrue(values.containsKey(it.next()));
> it.remove();
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
8 years, 7 months
[JBoss JIRA] (ISPN-5718) Random failures in ClusterListenerReplTxInitialStateTest.testAllExpired
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-5718?page=com.atlassian.jira.plugin.... ]
Work on ISPN-5718 started by William Burns.
-------------------------------------------
> Random failures in ClusterListenerReplTxInitialStateTest.testAllExpired
> -----------------------------------------------------------------------
>
> Key: ISPN-5718
> URL: https://issues.jboss.org/browse/ISPN-5718
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 8.0.0.Final
> Reporter: Dan Berindei
> Assignee: William Burns
> Priority: Blocker
> Fix For: 8.1.0.Alpha1
>
>
> It appears the expiration listener is invoked multiple times for the same key, and the first one has a {{null}} value:
> {noformat}
> 10:39:38,844 DEBUG (remote-thread-NodeA-p15343-t6:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
> 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t2:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=MagicKey#null{1297a9e5@NodeA-18241/8}-expiring, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
> 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t3:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
> 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t4:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
> 10:39:39,343 ERROR (testng-ClusterListenerDistTxInitialStateTest:[]) [UnitTestTestNGListener] Test testAllExpire(org.infinispan.notifications.cachelistener.cluster.ClusterListenerDistTxInitialStateTest) failed.
> java.lang.AssertionError: expected:<MagicKey#null{1297a9e5@NodeA-18241/8}-expiring> but was:<null>
> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.8.8.jar:?]
> at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.8.8.jar:?]
> at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.8.8.jar:?]
> at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88) ~[testng-6.8.8.jar:?]
> at org.infinispan.notifications.cachelistener.cluster.AbstractClusterListenerTest.testAllExpire(AbstractClusterListenerTest.java:662) ~[test-classes/:?]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
8 years, 7 months
[JBoss JIRA] (ISPN-5718) Random failures in ClusterListenerReplTxInitialStateTest.testAllExpired
by Dan Berindei (JIRA)
Dan Berindei created ISPN-5718:
----------------------------------
Summary: Random failures in ClusterListenerReplTxInitialStateTest.testAllExpired
Key: ISPN-5718
URL: https://issues.jboss.org/browse/ISPN-5718
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 8.0.0.Final
Reporter: Dan Berindei
Assignee: William Burns
Priority: Blocker
Fix For: 8.1.0.Alpha1
It appears the expiration listener is invoked multiple times for the same key, and the first one has a {{null}} value:
{noformat}
10:39:38,844 DEBUG (remote-thread-NodeA-p15343-t6:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
10:39:38,844 DEBUG (async-thread-NodeA-p15346-t2:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=MagicKey#null{1297a9e5@NodeA-18241/8}-expiring, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
10:39:38,844 DEBUG (async-thread-NodeA-p15346-t3:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
10:39:38,844 DEBUG (async-thread-NodeA-p15346-t4:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
10:39:39,343 ERROR (testng-ClusterListenerDistTxInitialStateTest:[]) [UnitTestTestNGListener] Test testAllExpire(org.infinispan.notifications.cachelistener.cluster.ClusterListenerDistTxInitialStateTest) failed.
java.lang.AssertionError: expected:<MagicKey#null{1297a9e5@NodeA-18241/8}-expiring> but was:<null>
at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88) ~[testng-6.8.8.jar:?]
at org.infinispan.notifications.cachelistener.cluster.AbstractClusterListenerTest.testAllExpire(AbstractClusterListenerTest.java:662) ~[test-classes/:?]
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
8 years, 7 months
[JBoss JIRA] (ISPN-5718) Random failures in ClusterListenerReplTxInitialStateTest.testAllExpired
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-5718?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-5718:
-------------------------------
Status: Open (was: New)
> Random failures in ClusterListenerReplTxInitialStateTest.testAllExpired
> -----------------------------------------------------------------------
>
> Key: ISPN-5718
> URL: https://issues.jboss.org/browse/ISPN-5718
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 8.0.0.Final
> Reporter: Dan Berindei
> Assignee: William Burns
> Priority: Blocker
> Fix For: 8.1.0.Alpha1
>
>
> It appears the expiration listener is invoked multiple times for the same key, and the first one has a {{null}} value:
> {noformat}
> 10:39:38,844 DEBUG (remote-thread-NodeA-p15343-t6:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
> 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t2:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=MagicKey#null{1297a9e5@NodeA-18241/8}-expiring, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
> 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t3:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
> 10:39:38,844 DEBUG (async-thread-NodeA-p15346-t4:[]) [ClusterListenerDistTxInitialStateTest] Adding new cluster event EventImpl{type=CACHE_ENTRY_EXPIRED, pre=false, cache=Cache 'cluster-listener'@NodeA-18241, key=MagicKey#null{1297a9e5@NodeA-18241/8}, value=null, oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false, entries=null, created=false}
> 10:39:39,343 ERROR (testng-ClusterListenerDistTxInitialStateTest:[]) [UnitTestTestNGListener] Test testAllExpire(org.infinispan.notifications.cachelistener.cluster.ClusterListenerDistTxInitialStateTest) failed.
> java.lang.AssertionError: expected:<MagicKey#null{1297a9e5@NodeA-18241/8}-expiring> but was:<null>
> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.8.8.jar:?]
> at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.8.8.jar:?]
> at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.8.8.jar:?]
> at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88) ~[testng-6.8.8.jar:?]
> at org.infinispan.notifications.cachelistener.cluster.AbstractClusterListenerTest.testAllExpire(AbstractClusterListenerTest.java:662) ~[test-classes/:?]
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
8 years, 7 months