<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 24, 2017 at 4:29 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I think the restriction (to use watchdog clusters, each Pgpool-II<br>
major/minor versions are exactly same) is not big deal for users.<br>
<br></blockquote><div>Yes that is correct, the restriction to use same major/minor version in one cluster is not a problem and there may not be any use case where someone</div><div>would be inclined towards that. The only thing I was worried about is the update procedure where a user would want to update the Pgpool-II version while eliminating</div><div>the downtime. But that is a little grey area currently and I was thinking of creating a lab environment and perform the tests to come up with the strategy and a document</div><div>clearly explaining the recommended procedures to upgrade the cluster from different versions of Pgpool-II with minimal/no-downtime.</div><div>Other than that imposing the restriction of similar versions of Pgpool-II should not be of any concern for any type of use case.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
So I prefer to go with the change Yugo proposed.<br></blockquote><div><br></div><div>Yes, exactly Yugo&#39;s patch is good and we should go with it,.</div><div><br></div><div>Thanks</div><div>Best Regards</div><div>Muhammad Usama</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
&gt; Hi Yugo Nagata,<br>
&gt;<br>
&gt; Thanks for catching this, Since most of the time we test the watchdog by<br>
&gt; running multiple instances on same machine so this issue would never appear<br>
&gt; in our test environment,<br>
&gt; I believe you fix is spot on and unfortunately as far as I can think of<br>
&gt; there is not much we can do for backward compatibility and have to live<br>
&gt; with that to fix this issue.<br>
&gt;<br>
&gt;  Thanks<br>
&gt; Best Regards<br>
&gt; Muhammad Usama<br>
&gt;<br>
&gt; On Thu, Aug 24, 2017 at 12:33 PM, Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; On Thu, 24 Aug 2017 16:31:51 +0900<br>
&gt;&gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Sorray, the previous attachment is incorrect.<br>
&gt;&gt; I attached a revised one.<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hi Usama,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; There is the recent bug report about wd_authkey.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;  0000333: watchdog fails to add node to master when wd_authkey is not an<br>
&gt;&gt; empty string; pgpool member shuts down<br>
&gt;&gt; &gt;  <a href="http://www.pgpool.net/mantisbt/view.php?id=333" rel="noreferrer" target="_blank">http://www.pgpool.net/<wbr>mantisbt/view.php?id=333</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; We have the same issue report recently from our client. In my analysis,<br>
&gt;&gt; this is a bug<br>
&gt;&gt; &gt; due to the commit [1]. This changed the definition of tv_sec that is<br>
&gt;&gt; used to check wd_authkey<br>
&gt;&gt; &gt; so that this was affected by the clock of OS. So, if there is a lag<br>
&gt;&gt; between two nodes&#39; clocks,<br>
&gt;&gt; &gt; the wd_authkey check fails.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; A simple solution is not to use tv_sec in the wd_authkey check as the<br>
&gt;&gt; attached patch.<br>
&gt;&gt; &gt; However, one concern is that this is a specification change and that<br>
&gt;&gt; this also will break<br>
&gt;&gt; &gt; back-compatibility. Of course, we can diallow watchdog cluster to have<br>
&gt;&gt; Pgpool-II of different<br>
&gt;&gt; &gt; minor-versions. Although this is already implicit restriction of<br>
&gt;&gt; watchdog, we can make this<br>
&gt;&gt; &gt; explicit restriction by checking other Pgpool-II node&#39;s version when<br>
&gt;&gt; receiving watchdog<br>
&gt;&gt; &gt; packet.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What do you think about it?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; [1] <a href="http://www.pgpool.net/pipermail/pgpool-committers/" rel="noreferrer" target="_blank">http://www.pgpool.net/<wbr>pipermail/pgpool-committers/</a><br>
&gt;&gt; 2017-April/003945.html<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; pgpool-hackers mailing list<br>
&gt;&gt; <a href="mailto:pgpool-hackers@pgpool.net">pgpool-hackers@pgpool.net</a><br>
&gt;&gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/<wbr>listinfo/pgpool-hackers</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div></div>