Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

I added the db4o object database as Voldemort backend #46

Open
wants to merge 9 commits into from

3 participants

@germanviscuso

No description provided.

@ordnungswidrig ordnungswidrig commented on the diff
.classpath
@@ -22,7 +22,7 @@
<classpathentry kind="lib" path="contrib/mongodb/lib/mongo-xjdm.jar"/>
<classpathentry kind="lib" path="contrib/hadoop-store-builder/lib/commons-cli-2.0-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="contrib/hadoop-store-builder/lib/hadoop-0.18.1-core.jar"/>
- <classpathentry kind="lib" path="lib/junit-4.6.jar"/>
+ <classpathentry kind="lib" path="lib/junit-4.6.jar" sourcepath="/Users/germanviscuso/.m2/repository/junit/junit/4.6/junit-4.6-sources.jar"/>

You likely want to remove the sourcepath here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@ordnungswidrig ordnungswidrig commented on the diff
.../voldemort/store/db4o/Db4oByteArrayStorageEngine.java
((263 lines not shown))
+ StoreUtils.assertValidKey(key);
+ boolean deletedSomething = false;
+ Db4oKeyValueProvider<ByteArray, Versioned<byte[]>> keyValueProvider = getKeyValueProvider();
+ try {
+ ObjectSet<Db4oKeyValuePair<ByteArray, Versioned<byte[]>>> candidates = keyValueProvider.get(key);
+ for(Db4oKeyValuePair<ByteArray, Versioned<byte[]>> pair: candidates) {
+ // if version is null no comparison is necessary
+ if(pair.getValue().getVersion().compare(version) == Occured.BEFORE) {
+ keyValueProvider.delete(pair);
+ deletedSomething = true;
+ }
+ }
+ return deletedSomething;
+ } catch(Exception de) {
+ logger.error(de);
+ throw new PersistenceFailureException(de.toString());

Better: new PersistenceFailureException("Delete operation failed", e);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@leigao
Collaborator

Do you have any perf numbers for running this backend? Basically, I am trying to figure out the benefit it can bring to voldemort, e.g. performance improvements, or better manageability in a multi-tenant environment?

@germanviscuso

All I have is this doc that I created when I contributed the db4o implementation: http://nosql.mypopescu.com/post/1080750812/using-object-database-db4o-as-storage-provider-in

@leigao leigao was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 8, 2010
  1. @germanviscuso
Commits on Jun 17, 2010
  1. @germanviscuso
Commits on Jun 23, 2010
  1. @germanviscuso
  2. @germanviscuso

    Added iterators

    germanviscuso authored
Commits on Jun 30, 2010
  1. @germanviscuso
Commits on Jul 4, 2010
  1. @germanviscuso
Commits on Jul 5, 2010
  1. @germanviscuso
Commits on Jul 6, 2010
  1. @germanviscuso
Commits on Jul 20, 2010
  1. @germanviscuso
Something went wrong with that request. Please try again.