pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lucas Sousa <lucas75@gmail.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: executeQuery Locked
Date: Wed, 12 Jul 2006 08:45:01 -0300
Message-ID: <cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com> (raw)
In-Reply-To: <44B483D4.3050001@opencloud.com>
References: <cccdaefb0607110929w6117e9d3w6904c7fd73fe5399@mail.gmail.com>
	<44B483D4.3050001@opencloud.com>

I am debugging the driver myself, I am looking into the PhantomReferences
that I think may be the cause of the problem (the problem seems to me
loosely related with the garbage collector frequency)

If I do the "set statement_timeout = 60000" on that connection I suppose
that after I release this connection back to the pool and another thread
fetches it the statement timeout will remain set ... is it not?

But it is good to know that I am not crazy....


On 7/12/06, Oliver Jowett <oliver@opencloud.com> wrote:
>
> Lucas Sousa wrote:
>
> >             stm.setQueryTimeout( timeout );
>
> > It seems to me that for some (weird) reason, the query timeout is bein
> > achieved without throwing any error or the postgresql driver detecting
> > that.
> >
> > This is some know issue?
>
> Unfortunately setQueryTimeout() is currently a no-op. As a workaround,
> set the server's statement_timeout variable.
>
> > Thread [zzzzzzz:12] (Suspended)
> >     SocketInputStream.socketRead0(FileDescriptor, byte[], int, int, int)
> > line: not available [native method]
> >     SocketInputStream.read(byte[], int, int) line: not available
> >     BufferedInputStream.fill() line: not available
> >     BufferedInputStream.read() line: not available
> >     PGStream.ReceiveChar() line: 256
> >     QueryExecutorImpl.processResults(ResultHandler, int) line: 1164
>
> The driver is waiting for results from the server. Either the query is
> still running or something has got confused about what's happening at
> the protocol level.
>
> Can you reproduce this with loglevel=2 set (as a URL parameter, see the
> driver docs)? Or a tcpdump/snoop/ethereal capture of the connection with
> the server when it gets stuck would also be useful. Also, if you could
> attach to the corresponding backend via gdb or similar and get a stack
> trace that may help.
>
> -O
>

view thread (6+ messages)  latest in thread

Message-ID: <cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com>
Permalink:  ../cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com/
Also on:    postgresql.org/message-id/cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: lucas75@gmail.com, oliver@opencloud.com
  Subject: Re: executeQuery Locked
  In-Reply-To: <cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com>
  References: <cccdaefb0607110929w6117e9d3w6904c7fd73fe5399@mail.gmail.com> <44B483D4.3050001@opencloud.com> <cccdaefb0607120445u4053d6dey7eb7adbae94413a9@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox