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!

je 6.4.25: Cleaner fails to rename deleted files if 'deleted' dir is not present.

mgrandiApr 25 2016 — edited Apr 26 2016

after turning on the feature "je.cleaner.useDeletedDir = true", when the cleaner finds files it can safely delete, if the 'ENV_HOME/deleted' directory is not present, then it will fail to delete the file, while spamming the logs with:

2016-04-26T02:42:40,499Z [Checkpointer] WARN c.s.j.c.Cleaner - - Cleaner deleteSafeToDeleteFiles Log file 0x4bf74 could not be renamed. This operation will be retried at the next checkpoint. State: files = {308568=status = TO_BE_CLEANED dbIds = null firstVlsn = -1 lastVlsn = -1, 308909=status = TO_BE_CLEANED dbIds = null firstVlsn = -1 lastVlsn = -1, 309286=status = TO_BE_CLEANED dbIds = null firstVlsn = -1 lastVlsn = -1, 309309=status = TO_BE_CLEANED dbIds = null firstVlsn = -1 lastVlsn = -1, 309313=status = TO_BE_CLEANED dbIds = null firstVlsn = -1 lastVlsn = -1, 309320=status = TO_BE_CLEANED dbIds = null firstVlsn = -1 lastVlsn = -1, 309486=status = TO_BE_CLEANED dbIds = null firstVlsn = -1 lastVlsn = -1, 3094.... (etc etc)

I believe it is just a missing call to ensure that the deleted directory has been created somewhere (perhaps on the Cleaner creation), because the final boolean success = oldFile.renameTo(newFile); call returns false (java.io.File)

example screenshot of com.sleepycat.je.log.FileManager#renameFile(long, java.lang.String, java.lang.String) :

screenshot_157.png

This post has been answered by Greybird-Oracle on Apr 26 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2016
Added on Apr 25 2016
1 comment
776 views