X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F134C529D7 for ; Thu, 18 Aug 2005 12:03:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 11029-02 for ; Thu, 18 Aug 2005 15:03:21 +0000 (GMT) Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.91]) by svr1.postgresql.org (Postfix) with ESMTP id 15928528E7 for ; Thu, 18 Aug 2005 12:03:20 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Thu, 18 Aug 2005 10:03:13 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.4 Date: Thu, 18 Aug 2005 10:02:52 -0500 From: "Kevin Grittner" To: Subject: Re: java.sql.SQLException: ERROR: canceling query due Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 required=5 tests=[AWL=0.007] X-Spam-Level: X-Archive-Number: 200508/126 X-Sequence-Number: 13695 Thanks, Oliver. =20 There is nothing running on the server box which would be aware of = PostgreSQL other than what was installed by the PostgreSQL 8.0.3 Windows = installer we downloaded. The clients are all connecting across the LAN. = The failing queries terminate within a few milliseconds. Even if = something was killing processes on the server, the odds that it would = consistently kill processes in the small and infrequent windows of time = when they are doing an update following a rollback seem vanishingly small. =20 I searched to ensure that nothing was invoking the Statement.setQueryTimeou= t method. =20 Since the server is Windows rather than Linux, we are doing a reboot = before one final test. That seems unlikely to make a difference; but, = like I said, it is Windows. =20 If the reboot fails to correct the problem, I really think that the = pattern of failure suggests a bug where the exception / rollback / select = / update (through the result set) sequence is exposing a PostgreSQL bug. = Hypothetically, would such a bug most likely be strictly server-side (in = which case this is the wrong forum to pursue it), or would it be likely = that the JDBC driver plays some role in the problem? Would it be worth = trying the V2 protocol to see if there is a change in this behavior? Any = configuration setting which might affect this? =20 Thanks, =20 -Kevin =20 =20 >>> Oliver Jowett 08/17/05 6:45 PM >>> Kevin Grittner wrote: > The server is 8.0.3 running on Windows. The client is using the 311 = build with some patches we need (from the stable branch). There is = nothing we know of which would be canceling things on the server side, and = nothing we know of which would be doing so on the JDBC client. (In fact, = when this happens during invocation of the Connection.commit method, I = don't think there is a way to cancel it programatically.) > java.sql.SQLException: ERROR: canceling query due to user request On a unix system I'd say that something is sending SIGINT to the backend process. Certainly, the JDBC driver never sends a cancel request unless you explicitly call Statement.cancel(), and as you say there's no way to cancel a commit(). I don't know what the equivalent to sending SIGINT in the win32 world is (there's some sort of signal emulation that the windows build uses?), but it sounds like something on the server side rather than a JDBC issue. -O