[JBoss JIRA] (ISPN-8264) Port conflict in OSGi testsuite preventing multiple containers
by Sanne Grinovero (JIRA)
Sanne Grinovero created ISPN-8264:
-------------------------------------
Summary: Port conflict in OSGi testsuite preventing multiple containers
Key: ISPN-8264
URL: https://issues.jboss.org/browse/ISPN-8264
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Reporter: Sanne Grinovero
Fix For: 9.2.0.Final, 9.1.1.Final
The {{integrationtests/osgi}} module build is reporting "no test failures" yet there are critical errors being reported about a container not booting.
I'm wondering if some tests are supposed to run in multi-containers but actually running on a single one?
There are multiple errors like this being logged by the build:
{noformat}
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.469 s - in org.infinispan.it.osgi.distexec.LocalDistributedExecutorTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 34, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[ERROR] There are test failures.
Please refer to /home/infinispan/workspace/Infinispan_master-5OURPVBKVS5PLGVSKVWLBFUZPLIO2DZSV3U7HWSZJBYGBGKYSFXQ/integrationtests/osgi/target/surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
Error occurred in starting fork, check output in log
org.apache.maven.surefire.booter.SurefireBooterForkException: Error occurred in starting fork, check output in log
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:634)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:279)
at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:243)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1077)
{noformat}
{noformat}
[TestSuiteProgress] Test starting: InfinispanEmbeddedServiceFactoryTest.testNoConfiguration
f.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278)Exception in thread "JMX Connector Thread [service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root]" java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers. If you need to start a second container or the default ports are already in use update the config file etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused ports at org.apache.kara2017-09-07 09:56:25,811 | WARN | FelixShutdown | core | 60 - org.apache.aries.jmx.core - 1.1.6 | Task rejected for JMX Notification dispatch of event [org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - Dispatcher may have been shutdown
[TestSuiteProgress] Test starting: InfinispanEmbeddedServiceFactoryTest.testMissingConfigProperties
f.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:278)Exception in thread "JMX Connector Thread [service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root]" java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers. If you need to start a second container or the default ports are already in use update the config file etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused ports at org.apache.kara2017-09-07 09:56:30,649 | ERROR | 63-d7e34241b996) | configadmin | 6 - org.apache.felix.configadmin - 1.8.4 | [org.osgi.service.cm.ManagedServiceFactory, id=325, bundle=73/mvn:org.infinispan/infinispan-osgi/9.1.1-SNAPSHOT]: Updating property config of configuration org.infinispan.manager.embedded.e82ee91a-8012-4be4-b563-d7e34241b996 caused a problem: Property must be set
org.osgi.service.cm.ConfigurationException: config : Property must be set
at org.infinispan.osgi.InfinispanEmbeddedServiceFactory.updated(InfinispanEmbeddedServiceFactory.java:44)[73:org.infinispan.osgi:9.1.1.SNAPSHOT]
at Proxyd756599e_13e0_4419_9875_20f355b42016.updated(Unknown Source)[:]
at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[6:org.apache.felix.configadmin:1.8.4]
at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[6:org.apache.felix.configadmin:1.8.4]
at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1747)[6:org.apache.felix.configadmin:1.8.4]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[6:org.apache.felix.configadmin:1.8.4]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_144]
2017-09-07 09:56:30,883 | WARN | FelixShutdown | core | 60 - org.apache.aries.jmx.core - 1.1.6 | Task rejected for JMX Notification dispatch of event [org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - Dispatcher may have been shutdown
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.832 s - in org.infinispan.it.osgi.InfinispanEmbeddedServiceFactoryTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
{noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ISPN-8263) NaturalIdInvalidationTest.testAll random size failures
by Galder Zamarreño (JIRA)
Galder Zamarreño created ISPN-8263:
--------------------------------------
Summary: NaturalIdInvalidationTest.testAll random size failures
Key: ISPN-8263
URL: https://issues.jboss.org/browse/ISPN-8263
Project: Infinispan
Issue Type: Bug
Components: Hibernate Cache
Affects Versions: 9.1.0.Final
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
org.infinispan.test.hibernate.cache.functional.cluster.NaturalIdInvalidationTest.testAll[nonstrict, REPL_SYNC]
org.infinispan.test.hibernate.cache.functional.cluster.NaturalIdInvalidationTest.testAll[nonstrict, DIST_SYNC]
{code}
Error Message
expected:<1> but was:<2>
Stacktrace
java.lang.AssertionError: expected:<1> but was:<2>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.infinispan.test.hibernate.cache.functional.cluster.NaturalIdInvalidationTest.testAll(NaturalIdInvalidationTest.java:129)
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:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:45)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ISPN-7461) Cache is not rebalanced on merge
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/ISPN-7461?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on ISPN-7461:
-----------------------------------------------
Petr Penicka <ppenicka(a)redhat.com> changed the Status of [bug 1421404|https://bugzilla.redhat.com/show_bug.cgi?id=1421404] from VERIFIED to CLOSED
> Cache is not rebalanced on merge
> --------------------------------
>
> Key: ISPN-7461
> URL: https://issues.jboss.org/browse/ISPN-7461
> Project: Infinispan
> Issue Type: Bug
> Components: State Transfer
> Affects Versions: 5.2.7.Final
> Reporter: Dennis Reed
> Assignee: Petr Jurak
> Fix For: 5.2.21.Final
>
>
> After a cluster split and merge, the consistent hash is not balanced between the members.
> For example in a 2-member cluster, after the merge one node will be primary owner of every segment. In In a larger cluster, some nodes will not own any data.
> DefaultConsistentHash{numSegments=60, numOwners=2, members=[RehashAfterPartitionMergeTest-NodeB-49100, RehashAfterPartitionMergeTest-NodeA-11552]} -- 0: 0 1, 1: 0 1, 2: 0 1, 3: 0 1, 4: 0 1, 5: 0 1, 6: 0 1, 7: 0 1, 8: 0 1, 9: 0 1, 10: 0 1, 11: 0 1, 12: 0 1, 13: 0 1, 14: 0 1, 15: 0 1, 16: 0 1, 17: 0 1, 18: 0 1, 19: 0 1, 20: 0 1, 21: 0 1, 22: 0 1, 23: 0 1, 24: 0 1, 25: 0 1, 26: 0 1, 27: 0 1, 28: 0 1, 29: 0 1, 30: 0 1, 31: 0 1, 32: 0 1, 33: 0 1, 34: 0 1, 35: 0 1, 36: 0 1, 37: 0 1, 38: 0 1, 39: 0 1, 40: 0 1, 41: 0 1, 42: 0 1, 43: 0 1, 44: 0 1, 45: 0 1, 46: 0 1, 47: 0 1, 48: 0 1, 49: 0 1, 50: 0 1, 51: 0 1, 52: 0 1, 53: 0 1, 54: 0 1, 55: 0 1, 56: 0 1, 57: 0 1, 58: 0 1, 59: 0 1
> This is triggered consistently by the RehashAfterPartitionMergeTest test case, but is not caught because it does not sufficiently check the consistent hash. (it checks RebalancePolicy.isBalanced, which merely makes sure each segment has the correct number of owners, not that it's evenly distributed).
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ISPN-8250) ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent random failures
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-8250?page=com.atlassian.jira.plugin.... ]
William Burns updated ISPN-8250:
--------------------------------
Status: Open (was: New)
> ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent random failures
> ----------------------------------------------------------------------------------
>
> Key: ISPN-8250
> URL: https://issues.jboss.org/browse/ISPN-8250
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.1.0.Final
> Reporter: Tristan Tarrant
> Labels: testsuite_stability
> Fix For: 9.1.1.Final
>
>
> java.lang.AssertionError: expected [true] but found [false]
> at org.infinispan.notifications.cachelistener.cluster.ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent(ClusterListenerDistTest.java:71)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ... Removed 20 stack frames
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ISPN-8250) ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent random failures
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-8250?page=com.atlassian.jira.plugin.... ]
William Burns updated ISPN-8250:
--------------------------------
Fix Version/s: 9.1.1.Final
> ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent random failures
> ----------------------------------------------------------------------------------
>
> Key: ISPN-8250
> URL: https://issues.jboss.org/browse/ISPN-8250
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.1.0.Final
> Reporter: Tristan Tarrant
> Labels: testsuite_stability
> Fix For: 9.1.1.Final
>
>
> java.lang.AssertionError: expected [true] but found [false]
> at org.infinispan.notifications.cachelistener.cluster.ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent(ClusterListenerDistTest.java:71)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ... Removed 20 stack frames
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ISPN-8250) ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent random failures
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-8250?page=com.atlassian.jira.plugin.... ]
William Burns reassigned ISPN-8250:
-----------------------------------
Assignee: William Burns
> ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent random failures
> ----------------------------------------------------------------------------------
>
> Key: ISPN-8250
> URL: https://issues.jboss.org/browse/ISPN-8250
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.1.0.Final
> Reporter: Tristan Tarrant
> Assignee: William Burns
> Labels: testsuite_stability
> Fix For: 9.1.1.Final
>
>
> java.lang.AssertionError: expected [true] but found [false]
> at org.infinispan.notifications.cachelistener.cluster.ClusterListenerDistTest.testPrimaryOwnerGoesDownBeforeSendingEvent(ClusterListenerDistTest.java:71)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> ... Removed 20 stack frames
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ISPN-8251) SoftIndexFileStoreTest.testWriteAndDeleteBatch
by Radim Vansa (JIRA)
[ https://issues.jboss.org/browse/ISPN-8251?page=com.atlassian.jira.plugin.... ]
Radim Vansa edited comment on ISPN-8251 at 9/6/17 10:30 AM:
------------------------------------------------------------
I could reproduce another issue in this test. If the {{store.process()}} method commences before moving entry from a compacted file to a new file, the new file is ignored. This is because the {{forEachOnDisk}} does not rescan the files/record new ones that are being created.
was (Author: rvansa):
I could reproduce this issue. If the {{store.process()}} method commences before moving entry from a compacted file to a new file, the new file is ignored. This is because the {{forEachOnDisk}} does not rescan the files/record new ones that are being created.
> SoftIndexFileStoreTest.testWriteAndDeleteBatch
> ----------------------------------------------
>
> Key: ISPN-8251
> URL: https://issues.jboss.org/browse/ISPN-8251
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 9.1.0.Final
> Reporter: Tristan Tarrant
> Assignee: Radim Vansa
>
> org.infinispan.persistence.spi.PersistenceException: java.lang.IllegalStateException: End of file reached when reading key on 5:351
> at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:509)
> at org.infinispan.persistence.sifs.SoftIndexFileStore.process(SoftIndexFileStore.java:519)
> at org.infinispan.test.TestingUtil.allEntries(TestingUtil.java:1534)
> at org.infinispan.test.TestingUtil.allEntries(TestingUtil.java:1539)
> at org.infinispan.persistence.BaseStoreTest.testWriteAndDeleteBatch(BaseStoreTest.java:540)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalStateException: End of file reached when reading key on 5:351
> at org.infinispan.persistence.sifs.EntryRecord.readKey(EntryRecord.java:77)
> at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:476)
> ... 24 more
> ... Removed 16 stack frames
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ISPN-8251) SoftIndexFileStoreTest.testWriteAndDeleteBatch
by Radim Vansa (JIRA)
[ https://issues.jboss.org/browse/ISPN-8251?page=com.atlassian.jira.plugin.... ]
Radim Vansa commented on ISPN-8251:
-----------------------------------
I could reproduce this issue. If the {{store.process()}} method commences before moving entry from a compacted file to a new file, the new file is ignored. This is because the {{forEachOnDisk}} does not rescan the files/record new ones that are being created.
> SoftIndexFileStoreTest.testWriteAndDeleteBatch
> ----------------------------------------------
>
> Key: ISPN-8251
> URL: https://issues.jboss.org/browse/ISPN-8251
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 9.1.0.Final
> Reporter: Tristan Tarrant
> Assignee: Radim Vansa
>
> org.infinispan.persistence.spi.PersistenceException: java.lang.IllegalStateException: End of file reached when reading key on 5:351
> at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:509)
> at org.infinispan.persistence.sifs.SoftIndexFileStore.process(SoftIndexFileStore.java:519)
> at org.infinispan.test.TestingUtil.allEntries(TestingUtil.java:1534)
> at org.infinispan.test.TestingUtil.allEntries(TestingUtil.java:1539)
> at org.infinispan.persistence.BaseStoreTest.testWriteAndDeleteBatch(BaseStoreTest.java:540)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalStateException: End of file reached when reading key on 5:351
> at org.infinispan.persistence.sifs.EntryRecord.readKey(EntryRecord.java:77)
> at org.infinispan.persistence.sifs.SoftIndexFileStore.forEachOnDisk(SoftIndexFileStore.java:476)
> ... 24 more
> ... Removed 16 stack frames
>
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months