On January 27th, this site will be read-only as we migrate to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,532 Users
  • 2,269,755 Discussions


After store upgrade to JE 7.5.11 the number of JE BDB files can be reduced to one which causes the f

User_BZQZ5 Member Posts: 16 Blue Ribbon
edited Nov 25, 2019 1:01PM in Berkeley DB Java Edition


I have a test  BDB JE store files in a very old format. After upgrade to 7.5.11, the environment creation which follows the upgrade fails with the following exception:

(c.s.j.d.EnvironmentImpl) - default checkpointId=14com.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)

It seems that issue only manifests on upgrade. When environment is created from scratch the the number of store files never drops to 1.

I can provide the store files before and after the upgrade if required.

Kind Regards,