Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

User_BZQZ5Nov 25 2019 — edited Nov 25 2019

Hi,

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=14

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)

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,

Alex

Comments
Post Details
Added on Nov 25 2019
0 comments
475 views