<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 25, 2017 at 11:45 AM, Tatsuo Ishii <span dir="ltr">&lt;<a href="mailto:ishii@sraoss.co.jp" target="_blank">ishii@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Unfortunately you commit does not improve things.  The issue is<br>
probably harmless for users. Let it leave as it is for now.<br></blockquote><div><br></div><div>:-( Yes it should be harmless for the users, anyhow I will keep an eye on this one and try to get it fixed as soon as I get some idea.</div><div><br></div><div>Thanks</div><div>Best Regards</div><div>Muhammad Usama</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_<wbr>en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
<br>
&gt; Hi Ishii-San<br>
&gt;<br>
&gt; Despite my utmost efforts I am not able to reproduce the issue, I have gone<br>
&gt; through the watchdog code and also have used emacs shell but still no luck.<br>
&gt; My hunch is that the garbage character is emitted somehow by the watchdog<br>
&gt; test script and not by the watchdog itself,<br>
&gt; So I have made few changes in the test script.<br>
&gt; Can you please try running the watchdog test case by pulling the latest<br>
&gt; regression related changes I have just pushed<br>
&gt; because other than that I am really clueless on this at the point.<br>
&gt;<br>
&gt; Thanks<br>
&gt; Best Regards<br>
&gt; Muhammad Usama<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 25, 2017 at 5:21 AM, Tatsuo Ishii &lt;<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Usama,<br>
&gt;&gt;<br>
&gt;&gt; I have taken look at a little bit. Since the regression script<br>
&gt;&gt; redirects everything (stdout and stderr) of the out of the test driver<br>
&gt;&gt; (in this case src/test/regress/tests/004.<wbr>watchdog/test.sh) to<br>
&gt;&gt; src/regression/log/004.<wbr>watchdog, the garbase must not come from stdout<br>
&gt;&gt; or stderr. It is likely the garbage is put to the tty device directly.<br>
&gt;&gt;<br>
&gt;&gt; By changing regress.sh so that it does not redirect everything,<br>
&gt;&gt;<br>
&gt;&gt;         #       timeout $TIMEOUT ./test.sh &gt; $log/$i 2&gt;&amp;1<br>
&gt;&gt;         timeout $TIMEOUT ./test.sh<br>
&gt;&gt;<br>
&gt;&gt; and run the test, I found the garbage was produced right before line<br>
&gt;&gt; 42 of test.sh:<br>
&gt;&gt; echo -n &quot;creating standby pgpool...&quot;<br>
&gt;&gt;<br>
&gt;&gt; So my guess is, while master watchdog is starting up, something is<br>
&gt;&gt; writing a garbage to the tty device directly.<br>
&gt;&gt;<br>
&gt;&gt; Best regards,<br>
&gt;&gt; --<br>
&gt;&gt; Tatsuo Ishii<br>
&gt;&gt; SRA OSS, Inc. Japan<br>
&gt;&gt; English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_<wbr>en.php</a><br>
&gt;&gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
&gt;&gt;<br>
&gt;&gt; &gt; Usama,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks for the commit. Unfortunately I still get the garbage output.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; t-ishii@localhost: ./regress.sh 004<br>
&gt;&gt; &gt; creating pgpool-II temporary installation ...<br>
&gt;&gt; &gt; moving pgpool_setup to temporary installation path ...<br>
&gt;&gt; &gt; using pgpool-II at /home/t-ishii/work/pgpool-II/<br>
&gt;&gt; current/pgpool2/src/test/<wbr>regression/temp/installed<br>
&gt;&gt; &gt; *************************<br>
&gt;&gt; &gt; REGRESSION MODE : install<br>
&gt;&gt; &gt; PGPOOL-II       : /home/t-ishii/work/pgpool-II/<wbr>current/pgpool2/src/test/<br>
&gt;&gt; regression/temp/installed<br>
&gt;&gt; &gt; PostgreSQL bin  : /usr/local/pgsql/bin<br>
&gt;&gt; &gt; pgbench         : /usr/local/pgsql/bin/pgbench<br>
&gt;&gt; &gt; PostgreSQL jdbc : /usr/local/pgsql/share/<wbr>postgresql-9.2-1003.jdbc4.jar<br>
&gt;&gt; &gt; *************************<br>
&gt;&gt; &gt; testing 004.watchdog... ok.<br>
&gt;&gt; &gt; out of 1 ok:1 failed:0 timeout:0<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Tatsuo Ishii<br>
&gt;&gt; &gt; SRA OSS, Inc. Japan<br>
&gt;&gt; &gt; English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_<wbr>en.php</a><br>
&gt;&gt; &gt; Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.<wbr>jp</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; From: Muhammad Usama &lt;<a href="mailto:m.usama@gmail.com">m.usama@gmail.com</a>&gt;<br>
&gt;&gt; &gt; Subject: [pgpool-committers: 4110] pgpool: Fix for [pgpool-hackers:<br>
&gt;&gt; 2400] Garbage output<br>
&gt;&gt; &gt; Date: Thu, 06 Jul 2017 19:26:03 +0000<br>
&gt;&gt; &gt; Message-ID: &lt;<a href="mailto:E1dTCPb-0001Gd-HQ@gothos.postgresql.org">E1dTCPb-0001Gd-HQ@gothos.<wbr>postgresql.org</a>&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Fix for [pgpool-hackers: 2400] Garbage output<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Mostly the log messages fixes and few code cleanups.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Branch<br>
&gt;&gt; &gt;&gt; ------<br>
&gt;&gt; &gt;&gt; master<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Details<br>
&gt;&gt; &gt;&gt; -------<br>
&gt;&gt; &gt;&gt; <a href="https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=" rel="noreferrer" target="_blank">https://git.postgresql.org/<wbr>gitweb?p=pgpool2.git;a=<wbr>commitdiff;h=</a><br>
&gt;&gt; 2b9d8aca0852aea9bcb0dc55068505<wbr>978b44bbcd<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Modified Files<br>
&gt;&gt; &gt;&gt; --------------<br>
&gt;&gt; &gt;&gt; src/include/watchdog/wd_ipc_<wbr>defines.h |  1 -<br>
&gt;&gt; &gt;&gt; src/watchdog/watchdog.c               | 99<br>
&gt;&gt; ++++++++++++++++++++++++------<wbr>-----<br>
&gt;&gt; &gt;&gt; 2 files changed, 69 insertions(+), 31 deletions(-)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt; ______________________________<wbr>_________________<br>
&gt;&gt; &gt; pgpool-committers mailing list<br>
&gt;&gt; &gt; <a href="mailto:pgpool-committers@pgpool.net">pgpool-committers@pgpool.net</a><br>
&gt;&gt; &gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-committers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/<wbr>listinfo/pgpool-committers</a><br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div></div>