couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor Mac Aoidh <conormacao...@gmail.com>
Subject Re: View Hanging
Date Thu, 12 Feb 2015 13:20:12 GMT
Hi Sebastian,

Thanks for the detailed reply! Unfortunately the problem is intermittent 
and can't be triggered by the likes of stress tests, so I have to wait 
until it occurs again to try your logging solution and debug further.

Thanks

Conor

On 11/02/15 21:05, Sebastian Rothbucher wrote:
> Hi Conor,
>
> it's hard to tell really. Maybe a solution is intercepting the calls to
> couchjs. I just posted one possible solution here:
> https://gist.github.com/sebastianrothbucher/01afe929095a55ab233e
>
> Basically, it's using the tee command to write input and output to a file
> to analyze.
>
> I don't really have a striking idea, but maybe looking at the outputs in
> your case helps.
>
> Good luck
>      Sebastian
>
> On Tue, Feb 10, 2015 at 5:00 PM, Conor Mac Aoidh <conormacaoidh@gmail.com>
> wrote:
>
>> Hi All,
>>
>> Been experiencing a strange issue where a couchdb view hangs repeatedly
>> and does not stop hanging until the couch service is restarted. It seems to
>> be happening on all databases (with the same view/design function)
>> simultaneously, ie. once its triggered, it happens everywhere where that
>> design doc is used.
>>
>> Stranger still, in some of the databases that are hanging, there are only
>> 1 or 2 documents to index, so it does not appear to be a load issue. I have
>> debug mode enabled and all I get in the logs for each request is:
>> /
>> //[Tue, 10 Feb 2015 15:33:41 GMT] [debug] [<0.1620.0>] 'GET'
>> /ie_conormacaoidh_gmail_com/_design/proj//ects/_view/projects/all {1,//
>> //1} from//
>> // "193.1.208.99"//
>> //Headers: [{'Accept',"*/*"},//
>> //          {'Authorization',"Basic YWRtaW46UVlIOHdFcGZLQXZzUFBu"},//
>> //          {'Host',"mysite.com:5984"},//
>> //          {'User-Agent',"curl/7.32.0"}]//
>> //[Tue, 10 Feb 2015 15:33:41 GMT] [debug] [<0.1620.0>] OAuth Params: []/
>>
>>
>> And the view function:
>> /
>> //function (doc) {//
>> //           if(doc.type === 'project' && doc.status !== 'deleted') {//
>> //                emit(doc.created, doc);//
>> //           }//
>> //}/
>>
>> Anyone have any ideas what is causing this or how to debug it further?
>>
>> P.S. I'm using couchdb 1.6.1
>>
>> Thanks
>>
>> Conor
>>


Mime
View raw message