From: Andres Freund <andres@anarazel.de>
To: Dimitri Maziuk <dmaziuk@bmrb.wisc.edu>
To: Petr Jelinek <petr@2ndquadrant.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: logical replication snapshots
Date: Mon, 23 Jul 2018 16:51:00 -0700
Message-ID: <20180723235100.qvztneum7ipdlyir@alap3.anarazel.de> (raw)
In-Reply-To: <3bf34856-efb9-01e8-3147-1e0dff1f7131@bmrb.wisc.edu>
References: <3bf34856-efb9-01e8-3147-1e0dff1f7131@bmrb.wisc.edu>
Hi,
On 2018-07-23 15:23:04 -0500, Dimitri Maziuk wrote:
> I'm playing with logical replication in postgres-10 and I got it to hang
> on startup with
>
> > 2018-07-23 13:15:06.577 CDT [18624] FATAL: the database system is starting up
> > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: shmem_exit(1): 0 before_shmem_exit callbacks to make
> > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: shmem_exit(1): 0 on_shmem_exit callbacks to make
> > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: proc_exit(1): 1 callbacks to make
> > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: exit(1)
> > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: shmem_exit(-1): 0 before_shmem_exit callbacks to make
> > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: shmem_exit(-1): 0 on_shmem_exit callbacks to make
> > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: proc_exit(-1): 0 callbacks to make
> ... forever ...
What precedes that "loop"?
Could you describe what exactly you did into that situation?
> After poking around:
>
> # find /var/lib/pgsql/10/data/pg_logical/snapshots -printf . | wc -c
> 12727975
Ugh, something absolutely clearly isn't right here.
> It looks like ZFS simply can't handle this many files: `ls` etc. hang
> forever.
ls probably works in general, it's just the sorting that makes it
hang. Should work with -f or such.
Greetings,
Andres Freund
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: andres@anarazel.de, dmaziuk@bmrb.wisc.edu, petr@2ndquadrant.com, alvherre@2ndquadrant.com, peter_e@gmx.net
Subject: Re: logical replication snapshots
In-Reply-To: <20180723235100.qvztneum7ipdlyir@alap3.anarazel.de>
References: <3bf34856-efb9-01e8-3147-1e0dff1f7131@bmrb.wisc.edu> <20180723235100.qvztneum7ipdlyir@alap3.anarazel.de>
* 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