mattmatt / nosql-handbook-examples

16 stars 4 forks source link

M/R errors #2

Open davisford opened 12 years ago

davisford commented 12 years ago

When I try the m/r examples, sometimes it returns a result, and sometimes it returns an error, that might look like this:

riak.add('tweets').map(loveTweets).reduce(countTweets).run()
undefined
> { [Error: HTTP error 500: {"phase":0,"error":"[preflist_exhausted]","input":"{ok,{r_object,<<\"tweets\">>,<<\"195357732499488769\">>,[{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\">>,53,118,80,49,68,56,99,51,112,118,108,48,101,77,85,66,120,49,121,122,107,55]],[[<<\"index\">>]],[],[[<<\"X-Riak-Last-Modified\">>|{1335,411887,982894}]],[],[[<<\"X-Riak-Meta\">>]]}}},<<\"{\"user\":\"SwaggieMiller\",\"tweet\":...\">>}],...},...}","type":"forward_preflist","stack":"[]"}] statusCode: 500 }

There are about 3000 bieber tweets in my database, and when the re-reduce does finish successfully, it reports 179. Do you know why it errors out sometimes? It might be worth adding commentary in the book about this.

roidrage commented 12 years ago

This seems to be an issue with Riak itself. There's an open issue and some instruction on how to work around this issue over here: basho/riak_pipe#44