Re: JDBC executeBatch() hangs without error

Поиск
Список
Период
Сортировка
От Vinay S (vinas)
Тема Re: JDBC executeBatch() hangs without error
Дата
Msg-id 3D2CB312427D204EAC2BCEB9771CB1951E3F5172@xmb-aln-x01.cisco.com
обсуждение исходный текст
Ответ на Re: JDBC executeBatch() hangs without error  (Kris Jurka <books@ejurka.com>)
Список pgsql-jdbc
That sounds about right.

So, I'll try to play around with private static final int MAX_BUFFERED_QUERIES and update you guys.

Thanks a bunch.

- Vinay

-----Original Message-----
From: Kris Jurka [mailto:books@ejurka.com]
Sent: Thursday, September 26, 2013 11:18 PM
To: Kevin Wooten
Cc: Vinay S (vinas); Dave Cramer; List
Subject: Re: [JDBC] JDBC executeBatch() hangs without error



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
areunfortunately not documented, but were introduced in this commit: 

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

Kris Jurka


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: JDBC executeBatch() hangs without error
Следующее
От: "Vinay S (vinas)"
Дата:
Сообщение: Re: JDBC executeBatch() hangs without error