MVN tests showed following issues. Any help will be appreciated. I am
debugging them though...
Failed tests:
testReadOnlyBookieShutdown[1](org.apache.bookkeeper.replication.AuditorLedgerCheckerTest):
latch should not have completed
Tests in error:
testRecoverFromLedgersMapOnV0EntryLog(org.apache.bookkeeper.bookie.EntryLogTest)
testRecoverFromLedgersMap(org.apache.bookkeeper.bookie.EntryLogTest)
testLedgerCacheFlushFailureOnDiskFull(org.apache.bookkeeper.bookie.LedgerCacheTest)
Also there are two unimplemented methods in LedgerManagerTestCase
Test failure is flopping; IF I put a print after count initialization it
passes.
-------------------------------------------------------------------------------
Test set: org.apache.bookkeeper.replication.AuditorLedgerCheckerTest
-------------------------------------------------------------------------------
Tests run: 28, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 49.747 sec
<<< FAILURE!
testReadOnlyBookieExclusionFromURLedgersCheck[0](org.apache.bookkeeper.replication.AuditorLedgerCheckerTest)
Time elapsed: 0.211 sec <<< FAILURE!
java.lang.AssertionError: latch should not have completed
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at
org.apache.bookkeeper.replication.AuditorLedgerCheckerTest.testReadOnlyBookieExclusionFromURLedgersCheck(AuditorLedgerCheckerTest.java:279)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
Looking into Test errors, all these issues seem to be the same thing, NULL
pointer exception in InterleavedLedgerStorage.
-------------------------------------------------------------------------------
Test set: org.apache.bookkeeper.bookie.EntryLogTest
-------------------------------------------------------------------------------
Tests run: 6, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.273 sec
<<< FAILURE!
testRecoverFromLedgersMapOnV0EntryLog(org.apache.bookkeeper.bookie.EntryLogTest)
Time elapsed: 0.12 sec <<< ERROR!
java.lang.NullPointerException
at
org.apache.bookkeeper.bookie.InterleavedLedgerStorage.onRotateEntryLog(InterleavedLedgerStorage.java:427)
at
org.apache.bookkeeper.bookie.EntryLogger.createNewLog(EntryLogger.java:446)
at
org.apache.bookkeeper.bookie.EntryLogger.rollLog(EntryLogger.java:419)
at
org.apache.bookkeeper.bookie.EntryLogTest.testRecoverFromLedgersMapOnV0EntryLog(EntryLogTest.java:272)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
testRecoverFromLedgersMap(org.apache.bookkeeper.bookie.EntryLogTest) Time
elapsed: 0.006 sec <<< ERROR!
java.lang.NullPointerException
at
org.apache.bookkeeper.bookie.InterleavedLedgerStorage.onRotateEntryLog(InterleavedLedgerStorage.java:427)
at
org.apache.bookkeeper.bookie.EntryLogger.createNewLog(EntryLogger.java:446)
at
org.apache.bookkeeper.bookie.EntryLogger.rollLog(EntryLogger.java:419)
at
org.apache.bookkeeper.bookie.EntryLogTest.testRecoverFromLedgersMap(EntryLogTest.java:238)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
-------------------------------------------------------------------------------
Test set: org.apache.bookkeeper.bookie.LedgerCacheTest
-------------------------------------------------------------------------------
Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.1 sec <<<
FAILURE!
testLedgerCacheFlushFailureOnDiskFull(org.apache.bookkeeper.bookie.LedgerCacheTest)
Time elapsed: 0.017 sec <<< ERROR!
java.lang.NullPointerException
at
org.apache.bookkeeper.bookie.InterleavedLedgerStorage.onRotateEntryLog(InterleavedLedgerStorage.java:427)
at
org.apache.bookkeeper.bookie.EntryLogger.createNewLog(EntryLogger.java:446)
at
org.apache.bookkeeper.bookie.EntryLogger.addEntry(EntryLogger.java:753)
at
org.apache.bookkeeper.bookie.InterleavedLedgerStorage.processEntry(InterleavedLedgerStorage.java:411)
at
org.apache.bookkeeper.bookie.SortedLedgerStorage.process(SortedLedgerStorage.java:154)
at
org.apache.bookkeeper.bookie.EntryMemTable.flushSnapshot(EntryMemTable.java:236)
at
org.apache.bookkeeper.bookie.EntryMemTable.flush(EntryMemTable.java:214)
at
org.apache.bookkeeper.bookie.SortedLedgerStorage.flush(SortedLedgerStorage.java:159)
at
org.apache.bookkeeper.bookie.LedgerCacheTest.testLedgerCacheFlushFailureOnDiskFull(LedgerCacheTest.java:291)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
~
--
Jvrao
---
First they ignore you, then they laugh at you, then they fight you, then
you win. - Mahatma Gandhi