Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C373F1337B7D for ; Tue, 14 Sep 2010 04:15:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 63638-04 for ; Tue, 14 Sep 2010 07:15:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cicero4.cybercity.dk (cicero4.cybercity.dk [212.242.40.52]) by mail.postgresql.org (Postfix) with ESMTP id BCE571337B7C for ; Tue, 14 Sep 2010 04:14:59 -0300 (ADT) Received: from jukebox.alleroedderne.adsl.dk (port161.ds1-aroe.adsl.cybercity.dk [217.157.138.230]) by cicero4.cybercity.dk (Postfix) with ESMTP id E87EE3CBDF3; Tue, 14 Sep 2010 09:14:54 +0200 (CEST) Received: from localhost (jukebox.alleroedderne.adsl.dk [127.0.0.1]) by jukebox.alleroedderne.adsl.dk (Postfix) with ESMTP id B55B93E3DA; Tue, 14 Sep 2010 09:14:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at alleroedderne.adsl.dk Received: from jukebox.alleroedderne.adsl.dk ([127.0.0.1]) by localhost (jukebox.alleroedderne.adsl.dk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mdexWr6sFyy7; Tue, 14 Sep 2010 09:14:52 +0200 (CEST) Received: from [127.0.0.1] (jukebox.alleroedderne.adsl.dk [127.0.0.1]) by jukebox.alleroedderne.adsl.dk (Postfix) with ESMTP id 6DD686B322; Tue, 14 Sep 2010 09:14:52 +0200 (CEST) Message-ID: <4C8F20EC.5020305@alleroedderne.adsl.dk> Date: Tue, 14 Sep 2010 09:14:52 +0200 From: Kim Bisgaard User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: Samuel Gendler CC: Kris Jurka , pgsql-jdbc@postgresql.org, msakrejda@truviso.com Subject: Re: Synchronisation problems in COPY IN References: <4C8E1564.80405@alleroedderne.adsl.dk> In-Reply-To: Content-Type: multipart/alternative; boundary="------------030702090008000602080904" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201009/25 X-Sequence-Number: 20895 This is a multi-part message in MIME format. --------------030702090008000602080904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Thanks everybody! Yes it was tried with the 701 build (I am almost sure that we also tried with cvs-head as of 2 weeks back - will check up on that) We will correct the connection.close() problem - thanks for pointing that out! And probably (if we still get problems) try the new build 800 driver. Thanks again, Kim On 2010-09-13 19:27, Samuel Gendler wrote: > Your error sure looks exactly like the problem that existed when using > a Reader instead of InputStream with the older driver (701), though > your description implies a different problem. > > On Mon, Sep 13, 2010 at 7:17 AM, Kris Jurka > wrote: > > > > On Mon, 13 Sep 2010, Kim Bisgaard wrote: > > We are occasionally experiencing problems with our JDBC > implementation of COPY IN. > > We have cut our program down to the attached example. > > > Do you get the failure you've shown from this example? I get > another failure from the connection being close before the last > copy thread can complete its write operation. This seems like an > expected failure, but I can't reproduce yours. > > org.postgresql.util.PSQLException: Database connection failed when > canceling copy operation > at > org.postgresql.core.v3.QueryExecutorImpl.cancelCopy(QueryExecutorImpl.java:796) > at > org.postgresql.core.v3.CopyOperationImpl.cancelCopy(CopyOperationImpl.java:32) > at org.postgresql.copy.CopyManager.copyIn(CopyManager.java:150) > at org.postgresql.copy.CopyManager.copyIn(CopyManager.java:126) > at EvejrDBCopy.run(EvejrDBCopy.java:34) > > > We use PostgreSQL 8.4, and JDBC 8.4-702. > > > Your stacktrace shows that you are using 8.4-701, not 702. 702 > had some fixes to the copy code when using a Reader, but your code > shows you are using an InputStream, so those changes shouldn't be > relevent. > > Kris Jurka > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org > ) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > > --------------030702090008000602080904 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks everybody!

Yes it was tried with the 701 build (I am almost sure that we also tried with cvs-head as of 2 weeks back - will check up on that)

We will correct the connection.close() problem - thanks for pointing that out!

And probably (if we still get problems) try the new build 800 driver.

Thanks again,
Kim


On 2010-09-13 19:27, Samuel Gendler wrote:
Your error sure looks exactly like the problem that existed when using a Reader instead of InputStream with the older driver (701), though your description implies a different problem.

On Mon, Sep 13, 2010 at 7:17 AM, Kris Jurka <books@ejurka.com> wrote:


On Mon, 13 Sep 2010, Kim Bisgaard wrote:

We are occasionally experiencing problems with our JDBC implementation of COPY IN.

We have cut our program down to the attached example.

Do you get the failure you've shown from this example?  I get another failure from the connection being close before the last copy thread can complete its write operation.  This seems like an expected failure, but I can't reproduce yours.

org.postgresql.util.PSQLException: Database connection failed when canceling copy operation
       at org.postgresql.core.v3.QueryExecutorImpl.cancelCopy(QueryExecutorImpl.java:796)
       at org.postgresql.core.v3.CopyOperationImpl.cancelCopy(CopyOperationImpl.java:32)
       at org.postgresql.copy.CopyManager.copyIn(CopyManager.java:150)
       at org.postgresql.copy.CopyManager.copyIn(CopyManager.java:126)
       at EvejrDBCopy.run(EvejrDBCopy.java:34)


We use PostgreSQL 8.4, and JDBC 8.4-702.


Your stacktrace shows that you are using 8.4-701, not 702.  702 had some fixes to the copy code when using a Reader, but your code shows you are using an InputStream, so those changes shouldn't be relevent.

Kris Jurka

--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

--------------030702090008000602080904--