pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zhu, Joshua <jzhu@vormetric.com>
To: Dan Wierenga <dwierenga@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: RE: BDR, ERROR: previous init failed, manual cleanup is required
Date: Thu, 8 Feb 2018 18:08:55 +0000
Message-ID: <1389b16da16640eab0cef1307f3f358c@EXUSDAGORL01.INTERNAL.ROOT.TES> (raw)
In-Reply-To: <CA+g_LOkQYc1rMSJi2_KS5WR-nnWqKoxdnHWL7tQn0KA4uKc0UQ@mail.gmail.com>
References: <874f98d9ffa3456f972ab8c9c8f08ba6@EXUSDAGORL01.INTERNAL.ROOT.TES>
	<CA+g_LOkQYc1rMSJi2_KS5WR-nnWqKoxdnHWL7tQn0KA4uKc0UQ@mail.gmail.com>

Thanks a lot for your reply…

I’ve already gone with the extreme route of dropping/recreating the database before trying the bdr_connections_changed() call, which I’ll keep in mind next time when the same issue happens.

From: Dan Wierenga [mailto:dwierenga@gmail.com]
Sent: Wednesday, February 07, 2018 1:45 PM
To: Zhu, Joshua <jzhu@thalesesec.net>
Cc: pgsql-general@postgresql.org
Subject: Re: BDR, ERROR: previous init failed, manual cleanup is required


On Wed, Feb 7, 2018 at 9:14 AM, Zhu, Joshua <jzhu@vormetric.com<mailto:jzhu@vormetric.com>> wrote:

Here is a BDR problem we ran into recently:

A BDR group with a pair of nodes, N1 and N2, group is created on N1, N2 joins the group, so far so good
N2 departs/rejoins the group a couple of times, then ran into an issue, with the following symptom, after executing bdr.bdr_group_join() on N2 wrt N1:

FWIW, I was never able to successfully join a node with bdr.bdr_group_join.   I was only ever able to get it to work by using bdr_init_copy and letting it create the database on the target node for me. Run "SELECT bdr.bdr_node_join_wait_for_ready();" to make sure it bootstrapped properly.

I can't access my bdr cluster right now, but off the top of my head:
- check the bdr.bdr_connections table in addition to the nodes table.
- make sure you run "select bdr.bdr_connections_changed();" after you manually delete from any of the bdr tables.


view thread (3+ messages)

Message-ID: <1389b16da16640eab0cef1307f3f358c@EXUSDAGORL01.INTERNAL.ROOT.TES>
Permalink:  ../1389b16da16640eab0cef1307f3f358c@EXUSDAGORL01.INTERNAL.ROOT.TES/
Also on:    postgresql.org/message-id/1389b16da16640eab0cef1307f3f358c@EXUSDAGORL01.INTERNAL.ROOT.TES

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jzhu@vormetric.com, dwierenga@gmail.com
  Subject: Re: BDR, ERROR: previous init failed, manual cleanup is required
  In-Reply-To: <1389b16da16640eab0cef1307f3f358c@EXUSDAGORL01.INTERNAL.ROOT.TES>
  References: <874f98d9ffa3456f972ab8c9c8f08ba6@EXUSDAGORL01.INTERNAL.ROOT.TES> <CA+g_LOkQYc1rMSJi2_KS5WR-nnWqKoxdnHWL7tQn0KA4uKc0UQ@mail.gmail.com> <1389b16da16640eab0cef1307f3f358c@EXUSDAGORL01.INTERNAL.ROOT.TES>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox