<div dir="ltr"><div>Thanks so much for reporting this on the list!</div><div><br></div>I have experienced this bug too.... (i saw it as big lag on the first call.... and then sometimes seems to just hang)<div><br></div><div>I tried 3.6.4 and 3.6.3 on ubuntu 14.04 and 16.04 - tried from apt and also from source... tbh i was almost ready to give up...</div><div><br></div><div>I can also confirm that if you just set the weight so it goes to Master only it works fine (this is what i&#39;m doing at the moment - and i was wondering what the next move would be)</div><div><br></div><div>Good to hear that 3.6.1 works ok - i will move to that shortly... </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 9, 2017 at 8:34 PM, Avi Weinberg <span dir="ltr">&lt;<a href="mailto:AviW@gilat.com" target="_blank">AviW@gilat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-4412697141278120708WordSection1">
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">Hi All,<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">I&#39;m using pgpool 3.6.4 master-slave with load balancing.  On many occasions a database
 exception is not passed to the application and the application get stuck.  I opened a bug -
<a href="https://www.pgpool.net/mantisbt/view.php?id=318" target="_blank">https://www.pgpool.net/<wbr>mantisbt/view.php?id=318</a>  but pgpool developers were not able to reproduce it yet.  I will greatly appreciate if some of you could please run the following script and check
 if the bug is reproduced on your setup.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">To run the sh script you need to have   pgproto (</span><span style="font-size:14.0pt"><a href="https://github.com/tatsuo-ishii/pgproto" target="_blank"><span style="font-family:&quot;Open Sans&quot;,serif;color:#337ab7;text-decoration:none">https://github.com/tatsuo-<wbr>ishii/pgproto</span></a></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">)  
 which was developed by Tatsuo-ishii to simulate pgpool problems.</span><span style="font-size:14.0pt"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">The following is a short shell script to run pgproto in a loop.  The bug318.data input
 file is also supplied below.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">Please note that it fails on setup running pgpool 3.6.4 with replication master+slave and
 load balancing. If you have setup with only master (slave is down) you will not see the bug. Please run the sh script and see if it manage to finish the loop without error.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">#!/bin/bash</span><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">File=&quot;./run_test.log&quot;</span><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">for ((n=0; n&lt;10000; n++))</span><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">do<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">(</span><span style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">   echo &quot;iteration $n &quot;</span><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8"><span dir="LTR"></span>   pgproto -f bug318.data -p 9999 –h your_ip_address
 -u postgres -d your_db_name &gt; $File;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">) 2&gt;&amp;1 | awk &#39;{ print strftime(&quot;%Y-%m-%d %H:%M:%S:&quot;), $0; fflush(); }&#39; | tee -a &quot;$File&quot;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">if grep -q Terminate &quot;$File&quot;; then</span><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8"><span dir="LTR"></span>   echo &quot;ok&quot;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">else<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">   echo &quot;Bug&quot;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">   exit<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">fi<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">done<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>---------------------</span><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8">The following is a bug318.data used by the batch script (which calls pgproto)</span><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Arial&quot;,sans-serif;color:black;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">#</span><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:#1f497d;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8"><span dir="LTR"></span>&#39;Q&#39;     &quot;SET statement_timeout = &#39;4s&#39;&quot;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:#1f497d;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8"><span dir="LTR"></span># Receive response from backend<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;Y&#39;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:#1f497d;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8"><span dir="LTR"></span># Execute statement<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;P&#39;     &quot;S1&quot;    &quot;SELECT 1/0&quot;    0<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;B&#39;     &quot;&quot;      &quot;S1&quot;    0       0       0<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;E&#39;     &quot;&quot;      0<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;C&#39;     &#39;S&#39;     &quot;S1&quot;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:#1f497d;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8"><span dir="LTR"></span># Execute statement<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;P&#39;     &quot;S2&quot;    &quot;SELECT 1/0&quot;    0<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;B&#39;     &quot;&quot;      &quot;S2&quot;    0       0       0<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;E&#39;     &quot;&quot;      0<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;C&#39;     &#39;S&#39;     &quot;S2&quot;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:#1f497d;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8"><span dir="LTR"></span># Issue Sync message<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;S&#39;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:#1f497d;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8"><span dir="LTR"></span># Receive response from backend<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;Y&#39;<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span lang="HE" dir="RTL" style="font-size:14.0pt;font-family:&quot;Times New Roman&quot;,serif;color:#1f497d;background:#e8e8e8"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span dir="LTR"></span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8"><span dir="LTR"></span># Send terminate message<u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:#1f497d;background:#e8e8e8">&#39;X&#39;</span><span style="font-size:14.0pt;font-family:&quot;Open Sans&quot;,serif;color:black;background:#e8e8e8"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:14.0pt"><u></u> <u></u></span></p>
</div>
IMPORTANT - This email and any attachments is intended for the above named addressee(s), and may contain information which is confidential or privileged. If you are not the intended recipient, please inform the sender immediately and delete this email: you
 should not copy or use this e-mail for any purpose nor disclose its contents to any person.
</div>

<br>______________________________<wbr>_________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/<wbr>listinfo/pgpool-general</a><br>
<br></blockquote></div><br></div>