New question: async replication is working fine and created 5 chlog journal files When I run rsync, Firebird successfully created/excluded everything, and I noted that Firebird deletes the journal files... and created a "UUID control file" So, how I was curious I re-run a full rsync of the journal (keeping the control file) coping the old 5 journal files, and here is the strange thing: Firebird deleted the first 2 journal files (async3.fdb.chlog-000000001 and async3.fdb.chlog-000000002) but keepted journals 3, 4 and 5 This files were only deleted when I created a new journal (by inserting a new record into a table) and run rsync Here is the replication.log:
TesteFb4Replication (replica) Sat Feb 20 22:21:55 2021 Database: /db/async3.fdb VERBOSE: Added 5 segment(s) to the processing queue TesteFb4Replication (replica) Sat Feb 20 22:21:55 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 1 due to fast forward TesteFb4Replication (replica) Sat Feb 20 22:21:55 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 2 due to fast forward TesteFb4Replication (replica) Sat Feb 20 22:21:55 2021 Database: /db/async3.fdb VERBOSE: No new segments found, suspending for 10 seconds TesteFb4Replication (replica) Sat Feb 20 22:22:05 2021 Database: /db/async3.fdb VERBOSE: Added 3 segment(s) to the processing queue TesteFb4Replication (replica) Sat Feb 20 22:22:05 2021 Database: /db/async3.fdb VERBOSE: No new segments found, suspending for 10 seconds TesteFb4Replication (replica) Sat Feb 20 22:22:15 2021 Database: /db/async3.fdb VERBOSE: Added 3 segment(s) to the processing queue TesteFb4Replication (replica) Sat Feb 20 22:22:15 2021 Database: /db/async3.fdb VERBOSE: No new segments found, suspending for 10 seconds ... last 2 logs kept repeating Then I created a new record and rsync: TesteFb4Replication (replica) Sat Feb 20 22:34:11 2021 Database: /db/async3.fdb VERBOSE: Added 6 segment(s) to the processing queue TesteFb4Replication (replica) Sat Feb 20 22:34:11 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 1 due to fast forward TesteFb4Replication (replica) Sat Feb 20 22:34:11 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 2 due to fast forward TesteFb4Replication (replica) Sat Feb 20 22:34:11 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 3 as no longer needed TesteFb4Replication (replica) Sat Feb 20 22:34:11 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 4 as no longer needed TesteFb4Replication (replica) Sat Feb 20 22:34:11 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 5 as no longer needed TesteFb4Replication (replica) Sat Feb 20 22:34:11 2021 Database: /db/async3.fdb VERBOSE: Segment 6 (112 bytes) is replicated in 82 ms, deleting the file TesteFb4Replication (replica) Sat Feb 20 22:34:11 2021 Database: /db/async3.fdb VERBOSE: No new segments found, suspending for 10 seconds At this point, all journal files were excluded RSYNC again: TesteFb4Replication (replica) Sat Feb 20 22:35:51 2021 Database: /db/async3.fdb VERBOSE: Added 6 segment(s) to the processing queue TesteFb4Replication (replica) Sat Feb 20 22:35:52 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 1 due to fast forward TesteFb4Replication (replica) Sat Feb 20 22:35:52 2021 Database: /db/async3.fdb VERBOSE: Deleting segment 2 due to fast forward TesteFb4Replication (replica) Sat Feb 20 22:35:52 2021 Database: /db/async3.fdb VERBOSE: No new segments found, suspending for 10 seconds TesteFb4Replication (replica) Sat Feb 20 22:36:02 2021 Database: /db/async3.fdb VERBOSE: Added 4 segment(s) to the processing queue TesteFb4Replication (replica) Sat Feb 20 22:36:02 2021 Database: /db/async3.fdb VERBOSE: No new segments found, suspending for 10 seconds TesteFb4Replication (replica) Sat Feb 20 22:36:12 2021 Database: /db/async3.fdb VERBOSE: Added 4 segment(s) to the processing queue Again, just the first 2 segments were deleted. Is this a bug? should't the replicator delete all old recurrent files instead of only deleting when there is a real new journal file? Why does it stop at the third journal file? Note: the first journal was `create table tb1`, the second was `drop tb1`, the third was `create table tb1` again, could this be the reason? Thanks
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel