0 Replies Latest reply on Apr 10, 2018 1:52 PM by 1328677

    Issue Upgrading JE 7.4.5 to JE 7.5.11

    1328677

      According to the release notes JE 7.5.11 is meant to be forward compatible and upgrade JE 7.4.5 databases (format 14 to 15) .

       

      But when I try I am unable to upgrade any Berkeley database from JE 7.4.5 to JE 7.5.11.

       

      In my unit testing I start with a brand new database created in JE 7.4.5, all works fine & I can open, close, read & write from it.

       

      I then try to open this database using JE 7.5.11 and I get the following error.

       

      com.sleepycat.je.EnvironmentFailureException: (JE 7.5.11) File 0x0 lastFile=1 UNEXPECTED_STATE: Unexpected internal state, may have side effects.

       

      Has anyone else had this issue? Has anyone successfully upgraded from JE 7.4.5 to JE 7.5.11?

       

      The full stack trace is:

       

      com.xxxxx.xxxxx.services.common.bkdb.BerkeleyDBException: Failed to open BKDB MessageStore_99999

      at com.xxxxx.xxxxx.services.common.bkdb.BerkeleyDBHandle.open(BerkeleyDBHandle.java:209)

      at com.xxxxx.xxxxx.services.common.bkdb.BerkeleyDBHandle.<init>(BerkeleyDBHandle.java:156)

      at com.xxxxx.xxxxx.services.common.bkdb.BerkeleyDBCachedHandle.<init>(BerkeleyDBCachedHandle.java:127)

      at com.xxxxx.xxxxx.services.common.bkdb.BerkeleyDBCachedHandle.<init>(BerkeleyDBCachedHandle.java:108)

      at com.xxxxx.xxxxx.services.common.bkdb.BerkeleyDBCachedHandleTest.setUp(BerkeleyDBCachedHandleTest.java:56)

      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: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.RunBefores.evaluate(RunBefores.java:24)

      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)

      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)

      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)

      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)

      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)

      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)

      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.runners.ParentRunner.run(ParentRunner.java:363)

      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)

      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)

      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)

      Caused by: com.sleepycat.je.EnvironmentFailureException: (JE 7.5.11) File 0x0 lastFile=1 UNEXPECTED_STATE: Unexpected internal state, may have side effects.

      at com.sleepycat.je.EnvironmentFailureException.unexpectedState(EnvironmentFailureException.java:444)

      at com.sleepycat.je.cleaner.FileProtector.getActiveFiles(FileProtector.java:379)

      at com.sleepycat.je.cleaner.FileProtector.getLogSizeStats(FileProtector.java:545)

      at com.sleepycat.je.cleaner.Cleaner.freshenLogSizeStats(Cleaner.java:1019)

      at com.sleepycat.je.cleaner.Cleaner.manageDiskUsage(Cleaner.java:776)

      at com.sleepycat.je.cleaner.Cleaner.updateFilesAtCheckpointEnd(Cleaner.java:1207)

      at com.sleepycat.je.recovery.Checkpointer.doCheckpoint(Checkpointer.java:899)

      at com.sleepycat.je.dbi.EnvironmentImpl.invokeCheckpoint(EnvironmentImpl.java:2233)

      at com.sleepycat.je.recovery.RecoveryManager.recover(RecoveryManager.java:496)

      at com.sleepycat.je.dbi.EnvironmentImpl.finishInit(EnvironmentImpl.java:842)

      at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:222)

      at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:267)

      at com.sleepycat.je.Environment.<init>(Environment.java:252)

      at com.sleepycat.je.Environment.<init>(Environment.java:222)

      at com.xxxxx.xxxxx.services.common.bkdb.BerkeleyDBHandle.createEnvironment(BerkeleyDBHandle.java:342)

      at com.xxxxx.xxxxx.services.common.bkdb.BerkeleyDBHandle.open(BerkeleyDBHandle.java:202)

      ... 30 more