preflist_exhausted with map-reduce and riak-js

Arne Claassen arne+riak at claassen.net
Tue Mar 13 02:55:58 EDT 2012


I'm running 1.1.0 built from source on Centos 6. I set up two nodes on localhost following the instructions on the basho site for testing and everything was going fine until i needed to fetch all items in a bucket.

For this i was using node.js with riak-js and it's db.getAll call,which from the debug logs looks like it uses /mapred

The bucket only has about 1200 items in it, each a json payload of about 3KB. Initially, it'd keep getting inconsistent results, sometimes the data would come back, sometimes data would be undefined. So i kept running it, trying to see if there was a pattern, adding more debugging code, etc. But still it would be about a request every couple of seconds. Then it just stopped working altogether and now i always get:

{ [Error: HTTP error 500: {"phase":0,"error":"[preflist_exhausted]","input":"{ok,{r_object,<<\"tweets_15368536\">>,<<\"178528155714330620\">>,[{r_content,{dict,6,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[[<<\"Links\">>]],[],[],[],[],[],[],[],[[<<\"content-type\">>,97,112,112,108,105,99,97,116,105,111,110,47,106,115,111,110],[<<\"X-Riak-VTag\">>,49,76,115,54,70,75,74,71,119,65,111,70,88,73,117,84,98,88,79,69,52,116]],[[<<\"index\">>]],[],[[<<\"X-Riak-Last-Modified\">>|{1331,487523,218968}]],[],[[<<\"X-Riak-Meta\">>]]}}},<<\"{\"coordinates\":null,\"create...\">>}],...},...}","type":"forward_preflist","stack":"[]"}] statusCode: 500 }

in the console. I haven't tried restarting riak, just because i'd rather find out what's happening than it going away and coming back later when i don't expect it.

Any suggestions on how to troubleshoot this? I can still access items individually and i can even list the keys via ?keys=true, it's just he map reduce that seems to be busted.

cheers,
arne



More information about the riak-users mailing list