New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Failed to drop replication slot" after patroni upgrade #2046
Comments
Patroni is trying to drop any unrecognized replication slot. It has always been like this, just the latest release does it more aggressive than before.. If you want to avoid it either you have to define |
@CyberDem0n thnx |
@CyberDem0n - it's also doing this with the replication slot that This is from the initial replica bootstrap on a new cluster. Relevant bit from
|
Starting from v10 pg_basebackup creates a temporary replication slot for WAL streaming and Patroni was trying to drop it like unknown. Another option would be running pg_basebackup with `--slot=current_node_name` option, but unfortunately at the moment when pg_basebackup is executed we don't yet know the major version (the `--slot` option was added in v9.6). Ref #2046 (comment)
@bradnicholson sorry about that, #2055 should fix the problem. |
Starting from v10 `pg_basebackup` creates a temporary replication slot for WAL streaming and Patroni was trying to drop it because the slot name looks unknown. In order to fix it, we skip all temporary slots when querying `pg_stat_replication_slots` view. Another option to solve the problem would be running `pg_basebackup` with `--slot=current_node_name` option, but unfortunately at the moment when `pg_basebackup` is executed, we don't yet know the major version (the `--slot` option was added in v9.6). Ref: #2046 (comment)
Hello all, I am having this error too but barman is working fine. How can I add this option "--slot=$current_node_name"? Can you please wtrite down an example on this post? Thank you Please add |
OS: RH 7.9
Pg: 13.3
Patroni: 2.1.0
Barman: 2.12
After patroni upgrade 1.6.5 -> 2.1.0, patroni logs errors:
Backup, replica, failover etc works fine. No errors in pg server log.
Solts in master (pgrep1) server:
Barman receivewal command
pg config
Is it bug or misconfiguration?
The text was updated successfully, but these errors were encountered: