Thanks! I did check out both of those, but as far as I could tell neither one supported conflict resolution, or at least it's not documented. If it is supported, do you think you could give an example of how to do it with sumo? I tried passing in the :vector-clock with in the map you pass into put, but that didn't yield any results.
My use case right now is that I'm writing a little proxy server in clojure to interact with riak. The client will be getting (possibly multiple) values out of riak, and passing in the one that it wants to be correct (possibly changing that correct one in some way was well before sending it back). --- On Tue, 12/18/12, Reid Draper <[email protected]> wrote: > From: Reid Draper <[email protected]> > Subject: Re: Trying to revamp the clj-riak driver > To: "bgp2396" <[email protected]> > Cc: [email protected] > Date: Tuesday, December 18, 2012, 3:44 PM > For a more up-to-date Clojure client, > I'd recommend looking at Welle [1] or Sumo [2]. Not to > discourage you from doing some hacking, just throwing some > other options out there. > > [1] http://clojureriak.info/ > [2] https://github.com/reiddraper/sumo > > Reid > > On Dec 18, 2012, at 3:12 PM, bgp2396 <[email protected]> > wrote: > > > I'm working on updating this driver to be in some kind > of working state: > > https://github.com/mmcgrana/clj-riak > > > > I've actually made some good progress, you can find my > fork of it here: > > https://github.com/mediocregopher/clj-riak > > > > I've gotten all the dependencies and such updated, and > (afaik) all of the old functionality is working again > (although I haven't tested mapreduce). > > > > Right now I'm trying to add in support for vclocks and > conflict resolution. As it stands the driver always passes > in the vclock as blank. I've switched to using one of the > RiakObject constructors which has a vclock passed in as > well, but now the code throws a > "NullPointerException clojure.lang.Reflector.invokeNoArgInstanceMember" > when calling buildContent() on it. I wanted to check on the > mailing list to see if anyone might know why this is before > I started diving into the java code and trying to debug that > to figure out where exactly in buildContent() it's failing. > > > > Here's a gist with relevant the relevant code: > > https://gist.github.com/4331526 > > > > _______________________________________________ > > riak-users mailing list > > [email protected] > > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > > _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
