[
https://issues.jboss.org/browse/ISPN-6952?page=com.atlassian.jira.plugin....
]
Dan Berindei commented on ISPN-6952:
------------------------------------
Attached a trace log. Note that the failing test is in the {{infinispan-jcache-remote}}
module, for some reason we have two tests with the same class and package name.
The embedded version of the test re-creates the cluster every time, but the remote version
reuses the cluster, and some of the test methods leak listeners. I'm not sure if
that's related to the duplicated event, but it's another inconvenience when trying
to debug it.
{noformat}
00:39:23,957 INFO (testng-JCacheTwoCachesBasicOpsTest:[]) [TestSuiteProgress] Test
starting: org.infinispan.jcache.JCacheTwoCachesBasicOpsTest.testListenerDiscardingFilter
00:39:23,958 TRACE (testServerHandler-4-2:[]) [CacheNotifierImpl] Replicating cluster
listener to other nodes [NodeA-45040, NodeB-16352] for cluster listener with id
a4a37e3b-b24d-4f18-b247-375878e53bb9
00:39:23,959 TRACE (remote-thread-NodeB-p10-t6:[]) [ClusterListenerReplicateCallable]
Registered local cluster listener for remote cluster listener from origin NodeA-45040 with
id a4a37e3b-b24d-4f18-b247-375878e53bb9
00:39:25,987 INFO (testng-JCacheTwoCachesBasicOpsTest:[]) [TestSuiteProgress] Test
succeeded: org.infinispan.jcache.JCacheTwoCachesBasicOpsTest.testListenerDiscardingFilter
...
00:39:26,155 INFO (testng-JCacheTwoCachesBasicOpsTest:[]) [TestSuiteProgress] Test
starting: org.infinispan.jcache.JCacheTwoCachesBasicOpsTest.testRemovedListener
00:39:26,167 TRACE (OOB-2,NodeB-16352:[]) [ReadCommittedEntry] Updating entry
(key=[B0x033e046b657931 removed=true valid=false changed=true created=false
value=[B0x033e0476616c33 metadata=EmbeddedExpirableMetadata{lifespan=-1, maxIdle=-1,
version=NumericVersion{version=281483566645275}}, providedMetadata=null)
00:39:26,167 TRACE (OOB-2,NodeB-16352:[]) [RemoteClusterListener] Passing Event to manager
EventImpl{type=CACHE_ENTRY_REMOVED, pre=false, cache=Cache
'jcache-remote-cache'@NodeB-16352, key=[B@8c4ad2d, value=[B@5b88ee9b,
oldValue=[B@158de9e1, transaction=null, originLocal=true, transactionSuccessful=false,
entries=null, created=false} to send to NodeA-45040
00:39:26,167 TRACE (OOB-2,NodeB-16352:[]) [RemoteClusterListener] Passing Event to manager
EventImpl{type=CACHE_ENTRY_REMOVED, pre=false, cache=Cache
'jcache-remote-cache'@NodeB-16352, key=[B@8c4ad2d, value=[B@50d27283,
oldValue=[B@158de9e1, transaction=null, originLocal=true, transactionSuccessful=false,
entries=null, created=false} to send to NodeA-45040
00:39:26,169 TRACE (remote-thread-NodeA-p2-t6:[]) [MultiClusterEventCallable] Received
multiple cluster event(s) {
a4a37e3b-b24d-4f18-b247-375878e53bb9=[ClusterEvent {type=CACHE_ENTRY_REMOVED, cache=Cache
'jcache-remote-cache'@NodeA-45040, key=[B@1e90f07b, value=[B@78861b36,
oldValue=[B@6ed5b1c3, transaction=null, retryCommand=false, origin=NodeB-16352}],
3f775b3f-5605-43e7-b539-f312dad0140e=[ClusterEvent {type=CACHE_ENTRY_REMOVED, cache=Cache
'jcache-remote-cache'@NodeA-45040, key=[B@1e90f07b, value=[B@14fdbec3,
oldValue=[B@6ed5b1c3, transaction=null, retryCommand=false, origin=NodeB-16352}]}
00:39:27,172 ERROR (testng-JCacheTwoCachesBasicOpsTest:[]) [TestSuiteProgress] Test
failed: org.infinispan.jcache.JCacheTwoCachesBasicOpsTest.testRemovedListener
java.lang.AssertionError: expected [1] but found [2]
{noformat}
JCacheTwoCachesBasicOpsTest.testRemovedListener fails
-----------------------------------------------------
Key: ISPN-6952
URL:
https://issues.jboss.org/browse/ISPN-6952
Project: Infinispan
Issue Type: Bug
Components: JCache
Reporter: Sebastian Ćaskawiec
Assignee: William Burns
Priority: Critical
Attachments: JCacheTwoCachesBasicOpsTest_20161106.log.gz
http://ci.infinispan.org/project.html?projectId=Infinispan&testNameId...
{noformat}
java.lang.AssertionError: expected [1] but found [2]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertEquals(Assert.java:123)
at org.testng.Assert.assertEquals(Assert.java:370)
at org.testng.Assert.assertEquals(Assert.java:380)
at
org.infinispan.jcache.AbstractTwoCachesBasicOpsTest.testRemovedListener(AbstractTwoCachesBasicOpsTest.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:348)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305)
at org.testng.SuiteRunner.run(SuiteRunner.java:254)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:115)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:205)
at
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:108)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
------- Stdout: -------
[TestSuiteProgress] Test starting:
org.infinispan.jcache.JCacheTwoCachesBasicOpsTest.testRemovedListener
[TestSuiteProgress] Test failed:
org.infinispan.jcache.JCacheTwoCachesBasicOpsTest.testRemovedListener
12:50:19,634 ERROR (testng-JCacheTwoCachesBasicOpsTest) [TestSuiteProgress] Test failed:
org.infinispan.jcache.JCacheTwoCachesBasicOpsTest.testRemovedListener
java.lang.AssertionError: expected [1] but found [2]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertEquals(Assert.java:123)
at org.testng.Assert.assertEquals(Assert.java:370)
at org.testng.Assert.assertEquals(Assert.java:380)
at
org.infinispan.jcache.AbstractTwoCachesBasicOpsTest.testRemovedListener(AbstractTwoCachesBasicOpsTest.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[TestSuiteProgress]
Tests succeeded: 19, failed: 1, skipped: 0
{noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)