pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Kerr <dmk@mr-paradox.net>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Unable to commit: transaction marked for rollback
Date: Thu, 01 Jul 2010 13:43:13 -0700
Message-ID: <4C2CFDE1.1020308@mr-paradox.net> (raw)
In-Reply-To: <4C2CA4180200002500032F32@gw.wicourts.gov>
References: <20100701181528.GA97516@mr-paradox.net>
	<4C2C98930200002500032F20@gw.wicourts.gov>
	<4C2CE533.8010301@mr-paradox.net>
	<4C2CA4180200002500032F32@gw.wicourts.gov>

On 7/1/2010 12:20 PM, Kevin Grittner wrote:
> David Kerr<dmk@mr-paradox.net>  wrote:
>
>> Would postgres normally log the error in the TX?
>
> A previous statement should have generated the original exception,
> if that's what you mean.
ok.

>> (it's not, which is why i'm asking)
>
> Where are you checking?  If you're talking about exceptions you're
> fielding, it wouldn't be the first time I've seen sloppy exception
> handling hide the first exception (the one that actually matters)
> and throw a secondary exception.  One common mistake is to catch the
> first exception and try to do some cleanup, but allow an exception
> to be thrown from the cleanup code -- completely hiding the first
> exception.
I'm checking the Postgres logs. (I'm not Java savvy, but i'll pass the 
info along to my developers)

> > There are, of course, variations on this, but you get the gist of
> it.
>
> Have you checked the PostgreSQL log file for clues?  If you're not
> seeing what you need, you could tweak the logging to show more.

We're trying that, it's (of course) intermittent and happens after like 
5 hours. so huge logfiles, etc as usual. With log_statements=none turned
on PG logs database errors. so it seems like whatever's happening isn't
being considered an "error". more of a natural database transaction 
(like a lock) or something. does that sound about right?

Thanks

Dave



view thread (13+ messages)  latest in thread

Message-ID: <4C2CFDE1.1020308@mr-paradox.net>
Permalink:  ../4C2CFDE1.1020308@mr-paradox.net/
Also on:    postgresql.org/message-id/4C2CFDE1.1020308@mr-paradox.net

 · 

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: dmk@mr-paradox.net, Kevin.Grittner@wicourts.gov
  Subject: Re: Unable to commit: transaction marked for rollback
  In-Reply-To: <4C2CFDE1.1020308@mr-paradox.net>
  References: <20100701181528.GA97516@mr-paradox.net> <4C2C98930200002500032F20@gw.wicourts.gov> <4C2CE533.8010301@mr-paradox.net> <4C2CA4180200002500032F32@gw.wicourts.gov> <4C2CFDE1.1020308@mr-paradox.net>

* 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