PostgreSQL的 - 数据复制停止

问题描述 投票:0回答:1

数据复制已经从我的三个节点中的一个停止。出错的节点上的复制插槽已经消失。有没有人有深入了解发生了什么事或如何解决呢?

联系方式:节点SS1,SS2,SS3和有哪些SSK订阅出版物。从SS2复制但现在失败。使用PostgreSQL 10.1。

SSK PSQL日志:

2019-02-07 10:21:13.953 CST [26274] LOG:  logical replication apply worker for subscription "SS2" has started
2019-02-07 10:21:14.309 CST [26274] ERROR:  could not start WAL streaming: ERROR:  replication slot "SS2" does not exist
2019-02-07 10:21:14.311 CST [1641] LOG:  worker process: logical replication worker for subscription 17237 (PID 26274) exited with exit code 1

SS2复制插槽表:

 slot_name | plugin | slot_type | datoid | database | temporary | active | active_pid | xmin | catalog_xmin | restart_lsn | confirmed_flush_lsn
-----------+--------+-----------+--------+----------+-----------+--------+------------+------+--------------+-------------+---------------------
(0 rows)

为了进行比较,SS1复制时隙表中:

 slot_name |  plugin  | slot_type | datoid | database | temporary | active | active_pid | xmin | catalog_xmin | restart_lsn | confirmed_flush_lsn
-----------+----------+-----------+--------+----------+-----------+--------+------------+------+--------------+-------------+---------------------
 SS1 | pgoutput | logical   |  33280 | DBAdd | f         | t      |       2113 |      |     56655301 | 3/114FB460  | 3/114FB498
(1 row)
postgresql database-replication
1个回答
0
投票

复制插槽不只是消失。

某人或某事必须将其删除。

也许主服务器的PostgreSQL数据库日志有有价值的信息。

你最近推动备用?由于复制插槽不可复制的,这将让他们消失。

© www.soinside.com 2019 - 2024. All rights reserved.