<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    <br>
    is there any news on this topic? Did my example clear things up?<br>
    <br>
    <br>
    Kind regards<br>
    Benjamin Firl<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 04/05/2018 12:23 PM, Benjamin Firl
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e8002009-3106-e715-1801-cec0bb86c807@wisit.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      I'll try to explain it with an example from our system:<br>
      <br>
      <b><br>
      </b><i>~$ psql -U postgres -p 5433 -c "show pool_nodes" | grep -v
        unused</i><i><br>
      </i><i> node_id | hostname  | port | status | lb_weight |  role  |
        select_cnt | load_balance_node | replication_delay</i><i><br>
      </i><i>---------+-----------+------+--------+-----------+--------+------------+-------------------+-------------------</i><i><br>
      </i><i> 14      | 10.0.1.14 | 5432 | down   | 0.200000  | slave  |
        2035       | false             | 0</i><i><br>
      </i><i> 15      | 10.0.1.15 | 5432 | down   | 0.200000  | slave  |
        2181       | false             | 0</i><i><br>
      </i><i> 19      | 10.0.1.19 | 5432 | down   | 0.200000  | slave  |
        1834       | false             | 0</i><i><br>
      </i><i> 20      | 10.0.1.20 | 5432 | up     | 0.200000  | master |
        3997772    | true              | 0</i><i><br>
      </i><i> 21      | 10.0.1.21 | 5432 | up     | 0.200000  | slave  |
        3781854    | false             | 0</i><br>
      <br>
      <br>
      We create and delete nodes automatically depending on our current
      resource needs. As you can see, we generate the node ID from the
      IP address of the system.<br>
      Node IDs 14, 15 and 19 were used before, but are not even in the
      configuration file anymore. Node 20 and 21 are the only ones
      active.<br>
      If we now add a new node, we write it to the configuration file
      with its generated node ID and start the online recovery process.
      If this ID is e.g. 22, everything works fine. But if the ID is
      e.g. 1 in this case, the recovery scripts receives the wrong
      parameters as shown.<br>
      <br>
      Hope that makes things clearer.<br>
      <br>
      <br>
      Kind regards<br>
      Benjamin Firl<br>
      <br>
      <br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 04/05/2018 11:01 AM, Tatsuo Ishii
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:20180405.180100.1196837388063541166.t-ishii@sraoss.co.jp">
        <pre wrap="">Can you share the exact step to reproduce the problem?

"a new lowest node id is added" is a little bit unclear to me.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: <a class="moz-txt-link-freetext" href="http://www.sraoss.co.jp/index_en.php" moz-do-not-send="true">http://www.sraoss.co.jp/index_en.php</a>
Japanese:<a class="moz-txt-link-freetext" href="http://www.sraoss.co.jp" moz-do-not-send="true">http://www.sraoss.co.jp</a>

</pre>
        <blockquote type="cite">
          <pre wrap="">Hallo,


I tested with the patched 3.7.2, still the same problem. I also tested
again with 3.6.7, this version also shows the same behaviour.

Also I am now able to reproduce it relatively easy, it really happens
every time a new lowest node id is added. So if there is anything else I
can try, configuration options or something, I will gladly do it.


Kind regards
Benjamin Firl



On 03/29/2018 10:21 AM, Tatsuo Ishii wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">Still I suspect the bug is only with 3.7.2.  Recently we releasd a
fixed version of 3.7.2 RPM (actually we just reverted a commit which
caused the bug). If you like, you could try the RPM.

Or you install from the source code, you could patch 3.7.2 with this commit:
<a class="moz-txt-link-freetext" href="https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=e8baa3f0ee1a24f833cfa6cc5d0104b5cefe7b04" moz-do-not-send="true">https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=e8baa3f0ee1a24f833cfa6cc5d0104b5cefe7b04</a>

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: <a class="moz-txt-link-freetext" href="http://www.sraoss.co.jp/index_en.php" moz-do-not-send="true">http://www.sraoss.co.jp/index_en.php</a>
Japanese:<a class="moz-txt-link-freetext" href="http://www.sraoss.co.jp" moz-do-not-send="true">http://www.sraoss.co.jp</a>

</pre>
            <blockquote type="cite">
              <pre wrap="">Hi,


is there any news on this topic? Any information that I can provide to help?
Thanks again for your help.


Kind regards
Benjamin Firl





On 03/02/2018 09:33 AM, Benjamin Firl wrote:
</pre>
              <blockquote type="cite">
                <pre wrap="">We have seen problems with online recovery in pgpool-II version 3.6.7
(subaruboshi). But we updated to 3.7.2 before we ware able to reproduce
and analyze it. So I suspect the same thing happened in 3.6.7, but I am
not 100% sure.
Adding a new lowest node id is a relatively rare case in our setup.


Kind regards
Benjamin Firl



On 03/02/2018 12:16 AM, Tatsuo Ishii wrote:
</pre>
                <blockquote type="cite">
                  <pre wrap="">I suspect it's a bug with 3.7.2. Have you seen similar issue with
other Pgpool-II versions?

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: <a class="moz-txt-link-freetext" href="http://www.sraoss.co.jp/index_en.php" moz-do-not-send="true">http://www.sraoss.co.jp/index_en.php</a>
Japanese:<a class="moz-txt-link-freetext" href="http://www.sraoss.co.jp" moz-do-not-send="true">http://www.sraoss.co.jp</a>

</pre>
                  <blockquote type="cite">
                    <pre wrap="">our script for online recovery stage1 seems to get wrong arguments
sometimes and thus is failing.

We log the arguments, so on a successful run it prints something like
that on the master node:

recovery_1st_stage.sh
all args: /var/lib/postgresql/9.5/main 10.0.1.25
/var/lib/postgresql/9.5/main 5432
data: /var/lib/postgresql/9.5/main
recovery target: 10.0.1.25
recovery data: /var/lib/postgresql/9.5/main


If recovery fails, we get this:

recovery_1st_stage.sh
all args: /var/lib/postgresql/9.5/main localhost 5432
data: /var/lib/postgresql/9.5/main
recovery target: localhost
recovery data: 5432
unable to recover myself....exiting
2018-03-01 14:31:59 CET [10517-1] postgres@template1 ERROR: 
pgpool_recovery failed
2018-03-01 14:31:59 CET [10517-2] postgres@template1 STATEMENT:  SELECT
pgpool_recovery('recovery_1st_stage.sh', 'localhost', '', '5432')


This seems to happen, if the new node has a lower id than the master
node. But normally adding a new node with lower id should not be a
problem, am I correct? 
We are using PostgreSQL 9.5.10 and pgpool-II version 3.7.2 (amefuriboshi).
Thanks for your help.


Kind regards
Benjamin Firl




-- 
+++++++++++++++++++++++++++++++++++++++++++++++++

+++ Jetzt neu Wissensmanagement für Netzwerke +++

+++             <a class="moz-txt-link-abbreviated" href="http://www.knodge.de" moz-do-not-send="true">www.knodge.de</a>                 +++

+++++++++++++++++++++++++++++++++++++++++++++++++

 

--

<a class="moz-txt-link-abbreviated" href="http://www.wisit.com" moz-do-not-send="true">www.wisit.com</a>

<a class="moz-txt-link-abbreviated" href="http://www.knodge.de" moz-do-not-send="true">www.knodge.de</a>

 

 

wisit media GmbH

Ehrenbergstr. 11

D-98693 Ilmenau

---------------------------------------------------------------------------

-

wisit media GmbH, Ehrenbergstr. 11, D-98693 Ilmenau

Registergericht Jena HRB 512472

Geschaeftsfuehrung: Dipl. Ing. Markus Duelli

 

 

Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich

erhalten haben, informieren Sie bitte sofort den Absender und vernichten

Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe

dieser E-Mail ist nicht gestattet. 

_______________________________________________
pgpool-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pgpool-general@pgpool.net" moz-do-not-send="true">pgpool-general@pgpool.net</a>
<a class="moz-txt-link-freetext" href="http://www.pgpool.net/mailman/listinfo/pgpool-general" moz-do-not-send="true">http://www.pgpool.net/mailman/listinfo/pgpool-general</a>
</pre>
                  </blockquote>
                </blockquote>
              </blockquote>
              <pre wrap="">-- 
+++++++++++++++++++++++++++++++++++++++++++++++++

+++ Jetzt neu Wissensmanagement für Netzwerke +++

+++             <a class="moz-txt-link-abbreviated" href="http://www.knodge.de" moz-do-not-send="true">www.knodge.de</a>                 +++

+++++++++++++++++++++++++++++++++++++++++++++++++

 

--

<a class="moz-txt-link-abbreviated" href="http://www.wisit.com" moz-do-not-send="true">www.wisit.com</a>

<a class="moz-txt-link-abbreviated" href="http://www.knodge.de" moz-do-not-send="true">www.knodge.de</a>

 

 

wisit media GmbH

Ehrenbergstr. 11

D-98693 Ilmenau

---------------------------------------------------------------------------

-

wisit media GmbH, Ehrenbergstr. 11, D-98693 Ilmenau

Registergericht Jena HRB 512472

Geschaeftsfuehrung: Dipl. Ing. Markus Duelli

 

 

Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich

erhalten haben, informieren Sie bitte sofort den Absender und vernichten

Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe

dieser E-Mail ist nicht gestattet. 

_______________________________________________
pgpool-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pgpool-general@pgpool.net" moz-do-not-send="true">pgpool-general@pgpool.net</a>
<a class="moz-txt-link-freetext" href="http://www.pgpool.net/mailman/listinfo/pgpool-general" moz-do-not-send="true">http://www.pgpool.net/mailman/listinfo/pgpool-general</a>
</pre>
            </blockquote>
          </blockquote>
          <pre wrap="">-- 
+++++++++++++++++++++++++++++++++++++++++++++++++

+++ Jetzt neu Wissensmanagement für Netzwerke +++

+++             <a class="moz-txt-link-abbreviated" href="http://www.knodge.de" moz-do-not-send="true">www.knodge.de</a>                 +++

+++++++++++++++++++++++++++++++++++++++++++++++++

 

--

<a class="moz-txt-link-abbreviated" href="http://www.wisit.com" moz-do-not-send="true">www.wisit.com</a>

<a class="moz-txt-link-abbreviated" href="http://www.knodge.de" moz-do-not-send="true">www.knodge.de</a>

 

 

wisit media GmbH

Ehrenbergstr. 11

D-98693 Ilmenau

---------------------------------------------------------------------------

-

wisit media GmbH, Ehrenbergstr. 11, D-98693 Ilmenau

Registergericht Jena HRB 512472

Geschaeftsfuehrung: Dipl. Ing. Markus Duelli

 

 

Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich

erhalten haben, informieren Sie bitte sofort den Absender und vernichten

Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe

dieser E-Mail ist nicht gestattet. 

_______________________________________________
pgpool-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pgpool-general@pgpool.net" moz-do-not-send="true">pgpool-general@pgpool.net</a>
<a class="moz-txt-link-freetext" href="http://www.pgpool.net/mailman/listinfo/pgpool-general" moz-do-not-send="true">http://www.pgpool.net/mailman/listinfo/pgpool-general</a>
</pre>
        </blockquote>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
+++++++++++++++++++++++++++++++++++++++++++++++++

+++ Jetzt neu Wissensmanagement für Netzwerke +++

+++             <a class="moz-txt-link-abbreviated" href="http://www.knodge.de" moz-do-not-send="true">www.knodge.de</a>                 +++

+++++++++++++++++++++++++++++++++++++++++++++++++

 

--

<a class="moz-txt-link-abbreviated" href="http://www.wisit.com" moz-do-not-send="true">www.wisit.com</a>

<a class="moz-txt-link-abbreviated" href="http://www.knodge.de" moz-do-not-send="true">www.knodge.de</a>

 

 

wisit media GmbH

Ehrenbergstr. 11

D-98693 Ilmenau

---------------------------------------------------------------------------

-

wisit media GmbH, Ehrenbergstr. 11, D-98693 Ilmenau

Registergericht Jena HRB 512472

Geschaeftsfuehrung: Dipl. Ing. Markus Duelli

 

 

Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich

erhalten haben, informieren Sie bitte sofort den Absender und vernichten

Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe

dieser E-Mail ist nicht gestattet. </pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
pgpool-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a>
<a class="moz-txt-link-freetext" href="http://www.pgpool.net/mailman/listinfo/pgpool-general">http://www.pgpool.net/mailman/listinfo/pgpool-general</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
+++++++++++++++++++++++++++++++++++++++++++++++++

+++ Jetzt neu Wissensmanagement für Netzwerke +++

+++             <a class="moz-txt-link-abbreviated" href="http://www.knodge.de">www.knodge.de</a>                 +++

+++++++++++++++++++++++++++++++++++++++++++++++++

 

--

<a class="moz-txt-link-abbreviated" href="http://www.wisit.com">www.wisit.com</a>

<a class="moz-txt-link-abbreviated" href="http://www.knodge.de">www.knodge.de</a>

 

 

wisit media GmbH

Ehrenbergstr. 11

D-98693 Ilmenau

---------------------------------------------------------------------------

-

wisit media GmbH, Ehrenbergstr. 11, D-98693 Ilmenau

Registergericht Jena HRB 512472

Geschaeftsfuehrung: Dipl. Ing. Markus Duelli

 

 

Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich

erhalten haben, informieren Sie bitte sofort den Absender und vernichten

Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe

dieser E-Mail ist nicht gestattet. </pre>
  </body>
</html>