pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Kevin Wooten <kdubb@me.com>
Cc: Vinay S (vinas) <vinas@cisco.com>
Cc: Dave Cramer <davecramer@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: JDBC executeBatch() hangs without error
Date: Thu, 26 Sep 2013 13:48:03 -0400 (EDT)
Message-ID: <alpine.BSO.2.03.1309261345001.26217@ejurka.com> (raw)
In-Reply-To: <CA7036E0-11A1-4438-9373-BD12736DA8EE@me.com>
References: <1380201441852-5772465.post@n5.nabble.com>
	<CADK3HH+3h=mOht6ZSig+AUmMA+rSkn3QeWspeRU2wcwbPWbLig@mail.gmail.com>
	<3D2CB312427D204EAC2BCEB9771CB1951E3F50A8@xmb-aln-x01.cisco.com>
	<CADK3HHKXUemN0qYjxPkGZDOzwoLTNeRs8ZpL9KBFRdwLc8pp2A@mail.gmail.com>
	<3D2CB312427D204EAC2BCEB9771CB1951E3F5126@xmb-aln-x01.cisco.com>
	<CA7036E0-11A1-4438-9373-BD12736DA8EE@me.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>



On Thu, 26 Sep 2013, Kevin Wooten wrote:

> Could this be related to the note in QueryExecutorImpl.java ~ line 287
> titled "Deadlock Avoidance"?
> If I remember correctly it's specifically related to batched queries and
> synchronous TCP.

Almost certainly.  The thing to look at is setting the network buffer 
sizes to use to large values to avoid the deadlock.  The default values 
are machine dependent which also explains it working or not on different 
machines.  These are unfortunately not documented, but were introduced in 
this commit:

https://github.com/pgjdbc/pgjdbc/commit/4e7f65b91e95d6249c78de6944f09cd34ef1ae87

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



view thread (8+ messages)  latest in thread

Message-ID: <alpine.BSO.2.03.1309261345001.26217@ejurka.com>
Permalink:  ../alpine.BSO.2.03.1309261345001.26217@ejurka.com/
Also on:    postgresql.org/message-id/alpine.BSO.2.03.1309261345001.26217@ejurka.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: books@ejurka.com, kdubb@me.com, vinas@cisco.com, davecramer@gmail.com
  Subject: Re: JDBC executeBatch() hangs without error
  In-Reply-To: <alpine.BSO.2.03.1309261345001.26217@ejurka.com>
  References: <1380201441852-5772465.post@n5.nabble.com> <CADK3HH+3h=mOht6ZSig+AUmMA+rSkn3QeWspeRU2wcwbPWbLig@mail.gmail.com> <3D2CB312427D204EAC2BCEB9771CB1951E3F50A8@xmb-aln-x01.cisco.com> <CADK3HHKXUemN0qYjxPkGZDOzwoLTNeRs8ZpL9KBFRdwLc8pp2A@mail.gmail.com> <3D2CB312427D204EAC2BCEB9771CB1951E3F5126@xmb-aln-x01.cisco.com> <CA7036E0-11A1-4438-9373-BD12736DA8EE@me.com> <alpine.BSO.2.03.1309261345001.26217@ejurka.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