Re: Possibility of a CAS API

2012-02-24 Thread Martin Bruse
Here is the working link: https://github.com/ProjectDaisy/blodsband/blob/master/lib/blodsband/riak/bucket.rb#L484 The universe will always punish you if you send long emails via smartphone :/ On Sat, Feb 25, 2012 at 4:21 AM, Armon Dadgar wrote: > It sounds like the "If-Unmodified-Since" and "If-

Re: Possibility of a CAS API

2012-02-24 Thread Martin Bruse
Take a look at https://github.com/ProjectDaisy/blodsband#L480 where I have implemented a CAS-like method on top of Riak. It works by (slightly simplified): 0) Reading current value 1) Checking current value 2) Writing with a "request id", W = all and readbody = true if the current value is wha

0.14 node leaving mixed cluster

2012-02-24 Thread Timo Gatsonides
I have a 6 node cluster. One node is running 1.1 already, the other 5 are still 0.14. I want not only to upgrade from 0.14 to 1.1 but also change backend from bit cask to leveled, so I thought I would do a "leave cluster, wait for handoff, upgrade and change config, join cluster" cycle for each

Re: Possibility of a CAS API

2012-02-24 Thread Reid Draper
On Feb 24, 2012, at 10:21 PM, Armon Dadgar wrote: > It sounds like the "If-Unmodified-Since" and "If-None-Match" flags could do > what I > need, but the docs specify "it is possible for the condition to evaluate to > true for > multiple requests if the requests occur at the same time." > > Fro

Re: Possibility of a CAS API

2012-02-24 Thread Armon Dadgar
It sounds like the "If-Unmodified-Since" and "If-None-Match" flags could do what I need, but the docs specify "it is possible for the condition to evaluate to true for multiple requests if the requests occur at the same time." From my understanding, the KV vnode's process their requests in a ser

Re: Possibility of a CAS API

2012-02-24 Thread Dietrich Featherston
If you need CAS semantics, then coordinate that outside of riak. Any check-then-act type of operation where atomicity is important is going to leave some room for a data race in a system with the distribution semantics of riak. Would suggest thinking about the problem in such a way that handling of

Re: Possibility of a CAS API

2012-02-24 Thread Ian Plosker
Armon, The feature you are describing is very similar to the conditional header, `If-Unmodified-Since`, provided by the client APIs (http://wiki.basho.com/HTTP-Store-Object.html & http://wiki.basho.com/PBC-Store-Object.html). Is this similar to what you're describing or am I missing something

Riak Recap for February 22 - 23

2012-02-24 Thread Mark Phillips
Evening, Morning, Afternoon to All Here's a Recap to take you into the weekend: blog posts, new code, and a lot of contributions. Enjoy. Mark Community Manager Basho Technologies wiki.basho.com/Riak.html twitter.com/pharkmillups - Riak Recap for February 22

Re: Issues with MapReduce in Riak 1.1.0

2012-02-24 Thread Michael Clemmons
I think I know the answer to this but would using a mix of 1.0.X and 1.1.0 together cause the same MapReduce issue? On Fri, Feb 24, 2012 at 4:56 PM, Jon Meredith wrote: > Issues have been reported by users and customers with the MapReduce > subsystem in Riak 1.1.0. > > 1) MapReduce fails in cl

Issues with MapReduce in Riak 1.1.0

2012-02-24 Thread Jon Meredith
Issues have been reported by users and customers with the MapReduce subsystem in Riak 1.1.0. 1) MapReduce fails in clusters that contain both 1.1.0 and older nodes 2) Javascript MapReduce jobs leak Javascript VMs under some failure conditions. 3) Keylisting continues after bucket MapReduce i

Possibility of a CAS API

2012-02-24 Thread Armon Dadgar
As part of a new feature we are working on, we've run into a situation where it would be incredibly convenient to have a check-and-set (CAS) API for Riak KV. In short, we are trying to build a unique index of a bucket, using a second bucket which acts as a reverse index. The CAS API would operat

Re: riak install error: R15B does not match required regex R13B04|R14

2012-02-24 Thread Jared Morrow
Mohamed, If you are using our packages provided, it packages Erlang r14b04 with Riak. Those packages will install straight away with erlang included. You look like you are trying to build from the source tarball versus installing a package. One thing to note, we haven't tested Riak with R

riak install error: R15B does not match required regex R13B04|R14

2012-02-24 Thread Chenini, Mohamed
Hi, I am trying to install riak riak-1.1.0, but I am getting a rebar error. ERROR: OTP release R15B does not match required regex R13B04|R14 make: *** [compile] Error 1 And though I added R15 like this {require_otp_vsn, "R14B0[234]|R15"}. I am still seeing the same error : ERROR: OT

Re: weakest link

2012-02-24 Thread Jeremiah Peschka
--- Jeremiah Peschka Managing Director, Brent Ozar PLF, LLC On Fri, Feb 24, 2012 at 5:36 AM, gibraltar wrote: > Hello, > > I'm founder of a very small startup (a.k.a one man show). Although I did > roll out a lot of critical piece of software to production environment > before, I was never resp

Re: KeyFilter Usage

2012-02-24 Thread Jeremiah Peschka
Secondary indexes don't support AND or OR with any client. Currently you'll have to roll that functionality yourself. AND should be pretty easy to implement, OR is moderately trickier, but only moderately. You'll have to order your queries yourself. CPU power is cheap enough at the client that ord

Re: 1.1 upgrade woes

2012-02-24 Thread David Smith
Hi heffergm, Thanks for the report. We're looking into the issue you described and will drop a line on this thread when we get it nailed down. Thanks, D. -- Dave Smith VP, Engineering Basho Technologies, Inc. diz...@basho.com ___ riak-users mailing

weakest link

2012-02-24 Thread gibraltar
Hello, I'm founder of a very small startup (a.k.a one man show). Although I did roll out a lot of critical piece of software to production environment before, I was never responsible of the database or systems that it depended on. Now, I'm responsible of those layers as well. Unlike many in thi

Multiple Index Queries using Riak and Python

2012-02-24 Thread Sreejith K
Hi everyone, I wrote a simple Python wrapper which makes use of Riak Secondary Indexes and MapReduce for Qerying multiple indexes at once. I know it might not be the ideal solution but thought It'd be a kind of cool stuff to do. Here is how it works. 1. Queries Multiple Indexes and get the associ

riak 1.0.2 wrong build for OSX i386

2012-02-24 Thread Zabrane Mickael
Hi guys, I'm running OSX 10.6.8, 32bits arch. Here's the problem: $ wget http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/1.0/1.0.2/riak-1.0.2-osx-i386.tar.gz $ tar xzf riak-1.0.2-osx-i386.tar.gz $ file riak-1.0.2/erts-5.8.4/bin/erlexec riak-1.0.2/erts-5.8.4/bin/erlexec: Mach