public class TestDoubleOpen extends ProxyTestCase<Journal>
TestCase2.MyProperties, TestCase2.RandomType
_randomType
Constructor and Description |
---|
TestDoubleOpen() |
TestDoubleOpen(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_doubleOpen()
This unit test was written to track down an exception which is not always
thrown for this condition.
|
getDelegate, getOurDelegate, getProperties, getStore, getStore, reopenStore, setDelegate, setUp, tearDown
checkIfProxy, fail, getRandomData, setUp, tearDown
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logProperties
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public TestDoubleOpen()
public TestDoubleOpen(String name)
name
- public void test_doubleOpen() throws InterruptedException, ExecutionException
OverlappingFileLockException
, and that does get thrown a good
percentage of the time.
I have since modified the test to accept the 'The handle is invalid' IOException as well. That is just making do with reality.
java.util.concurrent.ExecutionException: java.lang.RuntimeException: file=C:\DOCUME~1\BRYANT~1\LOCALS~1\Temp\bigdata-Disk-6474551553928984593.jnl at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) at java.util.concurrent.FutureTask.get(FutureTask.java:83) at com.bigdata.journal.TestDoubleOpen.test_doubleOpen(TestDoubleOpen.java:119) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) Caused by: java.lang.RuntimeException: file=C:\DOCUME~1\BRYANT~1\LOCALS~1\Temp\bigdata-Disk-6474551553928984593.jnl at com.bigdata.journal.FileMetadata.Here is another odd exception which can be thrown (Windows XP)(FileMetadata.java:760) at com.bigdata.journal.AbstractJournal. (AbstractJournal.java:1066) at com.bigdata.journal.AbstractJournal. (AbstractJournal.java:659) at com.bigdata.journal.Journal. (Journal.java:136) at com.bigdata.journal.TestDoubleOpen$1.call(TestDoubleOpen.java:103) at com.bigdata.journal.TestDoubleOpen$1.call(TestDoubleOpen.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: The handle is invalid at java.io.RandomAccessFile.length(Native Method) at com.bigdata.journal.FileMetadata. (FileMetadata.java:420) ... 10 more
Caused by: java.lang.NullPointerException at sun.nio.ch.FileChannelImpl$SharedFileLockTable.remove(FileChannelImpl.java:1100) at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:881) at com.bigdata.journal.FileMetadata.reopenChannel(FileMetadata.java:1188) at com.bigdata.journal.FileMetadata.access$0(FileMetadata.java:1156) at com.bigdata.journal.FileMetadata$1.reopenChannel(FileMetadata.java:1141) at com.bigdata.journal.FileMetadata$1.reopenChannel(FileMetadata.java:1) at com.bigdata.journal.FileMetadata.(FileMetadata.java:923) at com.bigdata.journal.FileMetadata.createInstance(FileMetadata.java:1448) at com.bigdata.journal.AbstractJournal. (AbstractJournal.java:870) at com.bigdata.journal.Journal. (Journal.java:228) at com.bigdata.journal.Journal. (Journal.java:221) at com.bigdata.journal.TestDoubleOpen$DoubleOpenTask.call(TestDoubleOpen.java:239) ... 6 more
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.