Filtering not_found in reduce JS causes SyntaxError

Matt Black matt.black at jbadigital.com
Sun Oct 20 20:58:48 EDT 2013


BTW, this cluster is running 1.4.0 still. If 1.4.2 would fix this issue I
could update.


On 21 October 2013 10:42, Matt Black <matt.black at jbadigital.com> wrote:

> Hey list,
>
> A script recently introduced to cleanup old data by deleting it has caused
> one of our old reporting scripts to start failing with “not_found”. I’d
> encountered this once before - so I thought the simple introduction of a
> reduce phase using Riak.filterNotFound would fix it.
>
> However, now I’m receiving this error - removing the one line addition of
> query.reduce("Riak.filterNotFound") gives me my old “not_found” error
> straight back.
>
> Exception: {"phase":1,"error":"[{<<\"lineno\">>,466},{<<\"message\">>,<<\"SyntaxError: syntax error\">>},{<<\"source\">>,<<\"()\">>}]","input":"{ok,{r_object,<<\"carts\">>,<<\"dd2bcd07fa8019b2d1fc1d4832c41c74\">>,[{r_content,{dict,4,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[],[],[],[],[],[],[[<<\"X-Riak-VTag\">>,52,68,115,107,113,49,105,69,66,109,103,79,106,87,104,75,75,97,53,98,54,65]],[[<<\"index\">>]],[[<<\"X-Riak-Deleted\">>,116,114,117,101]],[[<<\"X-Riak-Last-Modified\">>|{1381,978330,755498}]],[],[]}}},<<>>}],[{<<250,120,75,127,79,209,93,62>>,{6,63516323103}},{<<31,103,165,230,79,209,...>>,...},...],...},...}"}
>
> Any thoughts?
>
> Thanks y'all
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20131021/8d2b85bf/attachment.html>


More information about the riak-users mailing list