pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maciek Sakrejda <msakrejda@truviso.com>
To: pgsql-jdbc@postgresql.org
Subject: Test suite failures?
Date: Mon, 23 Mar 2009 09:12:08 -0700
Message-ID: <1237824728.27134.20.camel@manatee.sm.truviso.com> (raw)

(re-sending this--I tried yesterday but it looks like it failed without
a clear reason)

I've finally gotten the COPY functionality merge to a stable point and
wanted to run through the test suite, but I found that (even without
applying the COPY changes) I get a number of errors from the jdbc2
tests:

    [mkdir] Created
dir: /home/maciek/git/copy-merge/jdbc-upstream/build/testresults
    [junit] Testsuite: org.postgresql.test.jdbc2.Jdbc2TestSuite
    [junit] Tests run: 269, Failures: 0, Errors: 131, Time elapsed:
13.212 sec
    .......
    .......
    [junit] Test org.postgresql.test.jdbc2.Jdbc2TestSuite FAILED
    [junit] Testsuite:
org.postgresql.test.jdbc2.optional.OptionalTestSuite
    [junit] Tests run: 40, Failures: 0, Errors: 0, Time elapsed: 2.404
sec
    [junit]
    [junit] Testsuite: org.postgresql.test.jdbc3.Jdbc3TestSuite
    [junit] Tests run: 65, Failures: 0, Errors: 0, Time elapsed: 2.048
sec
    [junit]
    [junit] Testsuite: org.postgresql.test.xa.XATestSuite
    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.517
sec
    [junit]

The initial Exception that seems to bork the Connection and trigger a
cascade of Exceptions is here:

    [junit] Testcase:
testComments(org.postgresql.test.jdbc2.PreparedStatementTest):    Caused
an ERROR
    [junit] An I/O error occured while sending to the backend.
    [junit] org.postgresql.util.PSQLException: An I/O error occured
while sending to the backend.
    [junit]     at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:220)
    [junit]     at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
    [junit]     at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:367)
    [junit]     at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:360)
    [junit]     at
org.postgresql.test.jdbc2.PreparedStatementTest.testComments(PreparedStatementTest.java:437)
    [junit] Caused by: java.io.EOFException
    [junit]     at
org.postgresql.core.PGStream.ReceiveChar(PGStream.java:261)
    [junit]     at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1183)
    [junit]     at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:194)
    [junit]

Any thoughts? I grabbed this at trunk at this commit:

Author: jurka <jurka>
Date:   Thu Mar 12 03:59:50 2009 +0000

    Don't use pg_attrdef.adsrc to display a column's default value.
    This can get out of date when dependent objects are renamed.
    Instead decompile the adbin column to fetch up to date information.
   
    Per complaint from Dickson S. Guedes and suggestion from Tom Lane
    for the fix.


Thanks,
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com





view thread (4+ messages)  latest in thread

Message-ID: <1237824728.27134.20.camel@manatee.sm.truviso.com>
Permalink:  ../1237824728.27134.20.camel@manatee.sm.truviso.com/
Also on:    postgresql.org/message-id/1237824728.27134.20.camel@manatee.sm.truviso.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: msakrejda@truviso.com
  Subject: Re: Test suite failures?
  In-Reply-To: <1237824728.27134.20.camel@manatee.sm.truviso.com>
  References: <1237824728.27134.20.camel@manatee.sm.truviso.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