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!

"Secondary is corrupt: the primary record ..."

567972Apr 29 2011 — edited Apr 30 2011
We're using 3.3.98. When attempting to delete all records from an EntityStore, we're getting the error "com.sleepycat.je.SecondaryIntegrityException: (JE 4.1.6) Secondary is corrupt: the primary record contains a key that is not present in the secondary".

There's no additional detail about which key it is that isn't in the secondary, so not sure the source of the issue. The error happens on each of the last three records in the database. Each one has some null values in a MANY_TO_ONE secondary indexed field.

We've tried deleting from secondary key index first, but still get the exception. The exceptions in each case occur when deleting from the primary index.

Could having null values in a secondary index somehow be causing problems (even if the relationship type is MANY_TO_ONE)?

-tyson
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2011
Added on Apr 29 2011
7 comments
395 views