使用輔助索引時失敗我有一個了Riak數據庫運行eLevelDB後端,當我查詢與此映射減少,我得到的所有數據返回一個JSON字符串(如預期):Riak.mapValuesJson中的MapReduce
{
"inputs":"TWEETS_BY_ID",
"query":[
{"map":
{"language":"javascript",
"name":"Riak.mapValuesJson"
}
}]
}
這個查詢很慢,我真的只想查詢整個存儲桶的一小部分。我有一個時間戳的輔助指標,所以我嘗試和運行這個MapReduce的:
{
"inputs":
{
"bucket":"TWEETS_BY_ID",
"index":"timestamp_int",
"start":"1375736484000",
"end":"1375736485000"
},
"query":[
{"map":
{"language":"javascript",
"name":"Riak.mapValuesJson",
"keep":true
}
}
]
}
我得到這個錯誤:
{error,{exit,{json_encode,{bad_term,{1375736484000,<<"364491348659142656">>}}},
[{mochijson2,json_encode,2,
[{file,"src/mochijson2.erl"},{line,149}]},
{mochijson2,'-json_encode_proplist/2-fun-0-',3,
[{file,"src/mochijson2.erl"},{line,167}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
{mochijson2,json_encode_proplist,2,
[{file,"src/mochijson2.erl"},{line,170}]},
{mochijson2,'-json_encode_proplist/2-fun-0-',3,
[{file,"src/mochijson2.erl"},{line,167}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1197}]},
{mochijson2,json_encode_proplist,2,
[{file,"src/mochijson2.erl"},{line,170}]},
{mochijson2,'-json_encode_array/2-fun-0-',3,
[{file,"src/mochijson2.erl"},{line,157}]}]}}
我沒有升級到1.4.1這是今天公佈,有一個關於二級索引和Javascript映射還原的錯誤報告,但這似乎沒有改變我的錯誤。我甚至不確定如何開始調試。有什麼建議麼?