RE: BUG #18789: logical replication slots are deleted after failovers
От | Hayato Kuroda (Fujitsu) |
---|---|
Тема | RE: BUG #18789: logical replication slots are deleted after failovers |
Дата | |
Msg-id | OS7PR01MB14968E0B6F45F8BCED2D2A6CFF5F42@OS7PR01MB14968.jpnprd01.prod.outlook.com обсуждение исходный текст |
Ответ на | Re: BUG #18789: logical replication slots are deleted after failovers (Sachin Konde-Deshmukh <sachinkonde3@gmail.com>) |
Список | pgsql-bugs |
Dear Sachin, Thanks for the reply! > Only 2 nodes are in cluster, Hmm, how did you do failover more than once with only two nodes? Did you run swtichover? If so, did you update parameters accordingly? Also, where did you execute each query? > I am using Patroni on these two nodes. > Below is the configuration in patroni.yml file Note that we are not familiar with the patroni.yml because this is a PostgreSQL community. > slots: > mysub: > type: logical > database: postgres > plugin: pgoutput > failover: true > synced: true I grepped "failover" and "synced" on the Patroni docs, but could not find. > parameters: > ... > sync_replication_slots: 'on' > ... > shared_preload_libraries: 'pg_failover_slots' This part seems suspicious for me. pg_failover_slots is an external project of our community and sync_replication_slots is also set. > ------------------------------------- > /etc/patroni/set_all_logical_slot_status.sh > PG_HOST="10.3.82.17" Hmm, the IP address cannot be found in yml. > # Loop through each slot and update the failover and synced status if necessary This line is also suspicious. Users shouldn't update the failver/synced status by themselves. Overall, I think this issue needs to be broken down more. I think Patroni itself may have the slot-failover features, so we can't say that this is a bug-candidate of PostgreSQL. Please try to reproduce without Patronie, i.e., vanilla PostgreSQL. Then we can help you. Best regards, Hayato Kuroda FUJITSU LIMITED
В списке pgsql-bugs по дате отправления: