Re: How to set HTTP Last-Modified header from HTTP API

2014-03-14 Thread Sean Cribbs
The problem is not the Python client per se, but that Riak will always overwrite this field when you store the object. Although that property is necessarily writeable from within the client, it has no meaning when storing the object. On Fri, Mar 14, 2014 at 3:38 PM, Jeff Peck wrote: > Using the

How to set HTTP Last-Modified header from HTTP API

2014-03-14 Thread Jeff Peck
Using the python client, it is possible to set an object's "Last-Modified" date with obj.last_modified. However, I cannot figure out how to do it via curl. I have looked carefully through the riak client source code, but did not find anywhere where the Last-Modified header is even passed. Here

Re: Format bug on Riak Search PBC Response

2014-03-14 Thread Sean Cribbs
I would not be concerned that Solr or Riak Search will ever match 4,294,967,296 (2^32) results. uint32 is plenty large for this use. On Fri, Mar 14, 2014 at 2:45 AM, EmiNarcissus wrote: > It was a old bug but I get around it with http request instead. Still want > to confirm. > > message RpbSea

Cleaning up bucket after basho_bench run

2014-03-14 Thread István
Hi, I am trying to clean up some of the test data that was inserted by basho_bench. The first approach to use curl and streaming the keys fails like this: # curl -XGET -i http://127.0.0.1:8098/buckets/test/keys?keys=stream HTTP/1.1 200 OK Vary: Accept-Encoding Transfer-Encoding: chunked Server: M

Re: Question about link-walk results returned by erlang_pb_client

2014-03-14 Thread Alex Moore
Hi fxmy, > The return value is just Bucket/Key/link-tag pairs, without ObjectValue or > other metadata. > {ok,[{0,[[<<"people">>,<<"timoreilly">>,<<"friend">>]]}, > {1,[[<<"people">>,<<"dhh">>,<<"friend">>]]}]} > > Is this intended or not? This is intended. You are running a map reduce job wit

Re: Riak CS : "405 (Method Not Allowed)" when creating a bucket

2014-03-14 Thread Alex Moore
Hi Mikhail, > Look like a single point of failure. > In current version situation is same? Yes, this is a possible single point of failure, but Stanchion is only needed for the creation of buckets and user accounts. Object access is unaffected if Stanchion isn’t running. If stanchion did die, t

Re: Partitions placement

2014-03-14 Thread Ciprian Manea
Hi Daniel, "A Little Riak Book" covers the logic behind partition allocation in an overly simplified way. Riak will distribute partitions to vnodes in a pseudo-random fashion, resulting in allocations like you described. These allocations are less optimal when the number of riak nodes are small,

Question about link-walk results returned by erlang_pb_client

2014-03-14 Thread fxmy wang
Hi, list, This should be a trivial question and I think I'm definitely missing something( and feeling stupid :\). So when I am doing a chained link-walking through HTTP interface like this(copied from link walking docs ): > curl -v local

Format bug on Riak Search PBC Response

2014-03-14 Thread EmiNarcissus
It was a old bug but I get around it with http request instead. Still want to confirm. message RpbSearchQueryResp {   repeated RpbSearchDoc docs      = 1; // Result documents   optional float        max_score = 2; // Maximum score   optional uint32       num_found = 3; // Number of results } num