Test suite failures?

From: Maciek Sakrejda <msakrejda(at)truviso(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Test suite failures?
Date: 2009-03-23 16:12:08
Message-ID: 1237824728.27134.20.camel@manatee.sm.truviso.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

(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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Guy Rouillier 2009-03-23 16:51:07 Re: Log4j Appender
Previous Message Kris Jurka 2009-03-22 04:12:46 Re: Understanding PGInterval