incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Woodgate <jdwo...@gmail.com>
Subject Re: external limits
Date Fri, 20 Nov 2009 16:11:13 GMT
Sadly I can't access chat from work, is there a log I can check to see
exactly what it's choking on?  When I run the program by hand I get
one line that looks like this (though it's all on one line):

{"code" : 200,"headers" : {"Content-Type" : "text/plain"},"json" :
{"numRows" : 60,"rows" :
["urn:127.0.0.1/CouchDB:Object#633940930033756852","urn:127.0.0.1/CouchDB:Object#633940930033756942","urn:127.0.0.1/CouchDB:Object#633940930033756694","urn:127.0.0.1
...
/CouchDB:Object#633940930033756969","urn:127.0.0.1/CouchDB:Object#633940930033756799"]}}

Like I said it's really odd if I take the first 56 rows or the last 56
rows it's fine, but if I send one more I get an error.

On Fri, Nov 20, 2009 at 4:42 AM, Robert Newson <robert.newson@gmail.com> wrote:
> Well, we know for sure that an external can output a very large
> response, so I suggest comparing couchdb-lucene's code to your own and
> see what's different.
>
> If you hop on #couchdb sometime, I'm sure we could track the bug down.
>
> B.
>
> On Fri, Nov 20, 2009 at 3:02 AM, Jim Woodgate <jdwoody@gmail.com> wrote:
>> On Thu, Nov 19, 2009 at 5:10 PM, Robert Newson <robert.newson@gmail.com> wrote:
>>> Did you emit your JSON response on a single line?
>>
>> Yes it's all one line.
>>
>>
>>> On Thu, Nov 19, 2009 at 10:42 PM, Jim Woodgate <jdwoody@gmail.com> wrote:
>>>> I finally have a basic external program running, but I find that if I
>>>> return 57 ids it works, but if I return 58 ids or more I get an error.
>>>>  Is there a way to tell what the actual error is?  The text that comes
>>>> back says:
>>>>
>>>> {error_info,
>>>>  {exit,
>>>>    {exit_status,0},
>>>>    [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}}
>>>>
>>>> but then it just repeats what my original request looked like.  I
>>>> looked at ids 57 and 58 and nothing jumps out and I even tried
>>>> skipping the first 4 ids which also worked so it's not the actual data
>>>> but the size of it somehow.
>>>>
>>>> I tried returning a couple hundred results using couchdb-lucene and it
>>>> worked fine (and was 14k vs my 3k).
>>>>
>>>> The only header I set is Content-Type: text/plain and my json is
>>>> attached to the "json" key.  I don't believe it's a timing issue, when
>>>> I run the program by hand the output looks fine and it only takes a
>>>> couple hundred milliseconds
>>>>
>>>> --
>>>> Jim Woodgate
>>>> jdwoody@gmail.com
>>>>
>>>
>>
>>
>>
>> --
>> Jim Woodgate
>> jdwoody@gmail.com
>>
>



-- 
Jim Woodgate
jdwoody@gmail.com

Mime
View raw message