Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Bug in BDB storage engine
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jay.kr...@gmail.com  
View profile  
 More options Feb 11 2009, 12:06 pm
From: jay.kr...@gmail.com
Date: Wed, 11 Feb 2009 09:06:50 -0800 (PST)
Local: Wed, Feb 11 2009 12:06 pm
Subject: Bug in BDB storage engine
Hey All,

I found a serious bug in the BDB storage engine in trunk when testing
compatibility with our prior store data. The BDB option
setSortedDuplicates had been removed in trunk (which means we couldn't
open older stores). The effect of this is that only the latest version
of a key/value would be retained in trunk. This is a corner case, but
it is necessary for it to be handled correctly to get the correct
consistency guarantees.

The unit tests did not catch this problem because the code path is
slightly different (something which should be fixed).

I have re-added this option. Note that this means that data created in
BDB store with recent versions will not allow sorted duplicates. To
make sure that these stores can still be opened and used correctly I
added the server.properties option "bdb.enable.sorted.duplicates",
setting it to false will retain the current (buggy) behavior.

So if you have existing data stored in a recent trunk version you will
want to set this to false to retain the current behavior, but all new
uses should not set anything so that they do not experience this
problem in the first place.

If your BDB setting does not match your store data you will get the
error "Exception in thread "main" java.lang.IllegalArgumentException:
You can't open a Database with a sortedDuplicates configuration of
true if the underlying database was created with a sortedDuplicates
setting of false."

Sorry,

-Jay


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.