Closed tanyaranjan1995 closed 6 months ago
Hi @tanyaranjan1995 ;
Thanks for a detailed bug report. What's interesting is that the problem happens on the target database where it's using 11 replication origin entries. Is it possible that you did several test sessions and some clean-up has failed to happen before hand, or maybe that the same target database server is being used in the context of other source databases at the same time?
15:41:21.516 21696 ERROR [TARGET 8723] ERROR: could not find free replication state slot for replication origin with ID 11 15:41:21.517 21696 ERROR [TARGET 8723] HINT: Increase max_replication_slots and try again. 15:41:21.517 21696 ERROR [TARGET 8723] ERROR: could not find free replication state slot for replication origin with ID 11 15:41:21.517 21696 ERROR [TARGET 8723] SQL query: select pg_replication_origin_advance($1, $2) 15:41:21.517 21696 ERROR [TARGET 8723] SQL params: 'pgcopydbrorigin8', '9/BC025600' 15:41:21.517 21696 ERROR Failed to advance replication origin for "pgcopydbrorigin8" at LSN 9/BC025600
Thankyou Dimitri. Tried migration by increasing the replication slot on target. It worked.
Initiate migration for 8 databses, Migration succeded for 7 databases but failed for the 8th database with the error " could not find free replication state slot for replication origin with ID 11" Version: Running pgcopydb version 0.15 from "/usr/bin/pgcopydb"
Repro Steps: Start migration for 8 dbs: Dbname: db1, db2, db3, db4, db5, db6, db7, db8 Schema of all dbs:
For each dbX (Attached entire Logs in the end):
For db8: Command:
pgcopydb clone --follow --drop-if-exists --slot-name pgcopydbrslot8 --origin pgcopydbrorigin8 --plugin test_decoding --table-jobs 4 --index-jobs 4 --dir /tmp/pgcopydb8
Logs:
Source replication slot:
Complete Migration Logs: db1: pgcopydblogs_db1.txt
db2: pgcopydblogs_db2.txt
db3: pgcopydblogs_db3.txt
db4: pgcopydblogs_db4.txt
db5: pgcopydblogs_db5.txt
db6: pgcopydblogs_db6.txt
db7: pgcopydblogs_db7.txt
db8: pgcopydblogs_db8.txt