Re: BDR Error restarted

From: deans <dean(dot)song888(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: BDR Error restarted
Date: 2015-01-08 12:15:40
Message-ID: CAJRs85DyrWzwkjB7X=OMp8LtFF9KuKPez4fUUL6Wd26tYS=CRw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Craig.

> How exactly do you restart the node?
Using "service postgresql-9.4 restart" command to do the service restart.

> Please show the full log line, not just an excerpt, along with the lines around
it.
> If possible run with log_error_verbosity=verbose and show the extra line(s)
printed after each log line too, please.

See the full logs during the restart process on one node:
http://tny.cz/e1831e2a

Thanks,
Dean

On Wed, Jan 7, 2015 at 12:56 PM, Craig Ringer-3 [via PostgreSQL] <
ml-node+s1045698n5833173h75(at)n5(dot)nabble(dot)com> wrote:

> On 01/07/2015 11:28 AM, deans wrote:
>
> > Hi Guys.
> >
> > First of all, BDR is cool, should have tried it earlier.
> >
> > Environment: CentOS 6.5, PostgreSQL 9.4.0 with BDR from yum repository
> >
> > Done the PostgreSQL 9.4 with BDR setup successfully by following the
> User
> > Guide and Admin Doc, but got a issue when tried to do postgresql service
> > restart on any of the cluster nodes, it always lost items in the
> relation
> > "pg_stat_replication" after the service restarted
>
> It'd be weird if it didn't. That's not a table, it's a view over a
> function that reports server status information.
>
> It's like pg_stat_activity for replication.
>
> How exactly do you restart the node?
>
> > means lost replication
> > connections, like normally we have 26 items(13 databases and 3 servers
> in
> > cluster, so 13x2 items in pg_stat_replication on each node, yes, lots
> dbs on
> > one cluster), but after the restart, got some random count of item in
> the
> > relation, like 20, or 16 or 4, but not 26 as expected, i.e. not all the
> > replication connections running well.
>
> That's normal, in that it can take time for peers to notice and
> re-connect. This is true whether it's BDR, other logical replication, or
> conventional streaming replication.
>
> > And the logs showing replication is
> > "wait until the node has caught up", but they never catch up again.
>
> Please show the full log line, not just an excerpt, along with the lines
> around it.
>
> If possible run with log_error_verbosity=verbose and show the extra
> line(s) printed after each log line too, please.
>
> > BDR Settings(replaced the real db name here):
> > 1. on node 01, the replication src one:
> >
> > 2. on node 02, mostly like 03
>
> You forgot these.
>
> > Error logs:
>
> and these.
>
> --
> Craig Ringer http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
>
> --
> Sent via pgsql-general mailing list ([hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5833173&i=0>)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://postgresql.nabble.com/BDR-Error-restarted-tp5833139p5833173.html
> To unsubscribe from BDR Error restarted, click here
> <http://postgresql.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5833139&code=ZGVhbi5zb25nODg4QGdtYWlsLmNvbXw1ODMzMTM5fDE4MDgxODY4ODg=>
> .
> NAML
> <http://postgresql.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>

--
Thanks,
Dean.song

--
View this message in context: http://postgresql.nabble.com/BDR-Error-restarted-tp5833139p5833298.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message avpro avpro 2015-01-08 15:45:09 partial text search
Previous Message Tom Dearman 2015-01-08 12:02:41 View 'instead of' update row with new object