[JBoss JIRA] (ISPN-8257) BackupForStateTransferTest.testStateTransferWithClusterIdle random failures
by Radim Vansa (JIRA)
[ https://issues.jboss.org/browse/ISPN-8257?page=com.atlassian.jira.plugin.... ]
Radim Vansa updated ISPN-8257:
------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> BackupForStateTransferTest.testStateTransferWithClusterIdle random failures
> ---------------------------------------------------------------------------
>
> Key: ISPN-8257
> URL: https://issues.jboss.org/browse/ISPN-8257
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 9.1.0.Final
> Reporter: Galder Zamarreño
> Assignee: Pedro Ruivo
> Labels: testsuite_stability
> Fix For: 9.1.1.Final
>
>
> http://ci.infinispan.org/job/Infinispan/job/master/118/testReport/junit/o...
> {code}
> java.lang.AssertionError:
> at org.infinispan.xsite.statetransfer.BackupForStateTransferTest$6.assertInCache(BackupForStateTransferTest.java:138)
> at org.infinispan.xsite.AbstractXSiteTest.assertInSite(AbstractXSiteTest.java:178)
> at org.infinispan.xsite.statetransfer.BackupForStateTransferTest.assertNoStateTransferInReceivingSite(BackupForStateTransferTest.java:133)
> at org.infinispan.xsite.statetransfer.BackupForStateTransferTest.testStateTransferWithClusterIdle(BackupForStateTransferTest.java:94)
> 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
> {code}
--
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 updated ISPN-8251:
------------------------------
Status: Open (was: New)
> 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 updated ISPN-8251:
------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/5412
> 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-8247) SoftIndexFileStoreTest failures
by Radim Vansa (JIRA)
[ https://issues.jboss.org/browse/ISPN-8247?page=com.atlassian.jira.plugin.... ]
Radim Vansa closed ISPN-8247.
-----------------------------
Resolution: Duplicate Issue
> SoftIndexFileStoreTest failures
> -------------------------------
>
> Key: ISPN-8247
> URL: https://issues.jboss.org/browse/ISPN-8247
> Project: Infinispan
> Issue Type: Bug
> Components: Loaders and Stores
> Affects Versions: 9.1.0.Final
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
>
> Failure encountered on SoftIndexFileStore::testWriteAndDeleteBatch, however SoftIndexFileStore does not implement writeBatch, so this implies the problem can also occur with normal write operations.
> {code:java}
> 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
>
> {code}
> Another failure encountered with SoftIndexFileStoreTest::testOverrideWithExpirableAndCompaction
> {code:java}
> org.infinispan.persistence.spi.PersistenceException: org.infinispan.persistence.spi.PersistenceException: Index looks corrupt
> at org.infinispan.persistence.sifs.SoftIndexFileStore.load(SoftIndexFileStore.java:420)
> at org.infinispan.persistence.sifs.SoftIndexFileStoreTest.testOverrideWithExpirableAndCompaction(SoftIndexFileStoreTest.java:185)
> 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.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.access$000(SuiteRunner.java:38)
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:382)
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.infinispan.persistence.spi.PersistenceException: Index looks corrupt
> at org.infinispan.persistence.sifs.IndexNode.applyOnLeaf(IndexNode.java:295)
> at org.infinispan.persistence.sifs.Index.getRecord(Index.java:94)
> at org.infinispan.persistence.sifs.SoftIndexFileStore.load(SoftIndexFileStore.java:414)
> ... 21 more
> Caused by: org.infinispan.persistence.sifs.IndexNode$IndexNodeOutdatedException: 12:546
> at org.infinispan.persistence.sifs.IndexNode$LeafNode.loadRecord(IndexNode.java:989)
> at org.infinispan.persistence.sifs.IndexNode$ReadOperation$1.apply(IndexNode.java:222)
> at org.infinispan.persistence.sifs.IndexNode$ReadOperation$1.apply(IndexNode.java:219)
> at org.infinispan.persistence.sifs.IndexNode.applyOnLeaf(IndexNode.java:291)
> ... 23 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months
[JBoss JIRA] (ISPN-3849) Re-work ServiceLoader concepts
by Tuomas Kiviaho (JIRA)
[ https://issues.jboss.org/browse/ISPN-3849?page=com.atlassian.jira.plugin.... ]
Tuomas Kiviaho commented on ISPN-3849:
--------------------------------------
I pinpoint here that bundle providing ServiceLoader must be in state ACTIVE. Otherwise you'll end up with NPE because BundleContext will be missing.
{code}
private static <T> void addOsgiServices(Class<T> contract, Set<T> services) {
if (!Util.isOSGiContext()) {
return;
}
ClassLoader loader = ServiceFinder.class.getClassLoader();
if ((loader != null) && (loader instanceof org.osgi.framework.BundleReference)) {
final BundleContext bundleContext = ((BundleReference) loader).getBundle().getBundleContext();
final ServiceTracker<T, T> serviceTracker = new ServiceTracker<T, T>(bundleContext, contract.getName(),
null);
serviceTracker.open();
try {
final Object[] osgiServices = serviceTracker.getServices();
if (osgiServices != null) {
for (Object osgiService : osgiServices) {
services.add((T) osgiService);
}
}
} catch (Exception e) {
// ignore
}
}
}
{code}
A far better approach might be to ditch ServiceTracker altogether in favor of just handpicking the service reference because that class requires OSGi Compendium to be present and here it's not necessarily needed for what is being done.
Side note: ServiceReference objects that are also inside ServiceTracker should always be unget after service is no longer needed. Hence the open doesn't have close companion which contradicts the WhiteBoard pattern.
> Re-work ServiceLoader concepts
> ------------------------------
>
> Key: ISPN-3849
> URL: https://issues.jboss.org/browse/ISPN-3849
> Project: Infinispan
> Issue Type: Sub-task
> Components: Core
> Reporter: Brett Meyer
> Assignee: Brett Meyer
> Fix For: 7.0.0.Alpha4
>
>
> Any uses of ServiceLoader will need to be replaced by a new utility to first check OSGi services w/ SL as a fallback. This also requires that any internal services also need to be registered with OSGi (as well as external extension point impls, etc.). That's not invasive at all. OSGi blueprint files are very similar to the service loader text files in META-INF/services.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 4 months