Skip to content

Fix resume-cdc.sh to append logs to migration.log#51

Open
teknogeek0 wants to merge 4 commits into
mainfrom
fix/resume-cdc-log-file
Open

Fix resume-cdc.sh to append logs to migration.log#51
teknogeek0 wants to merge 4 commits into
mainfrom
fix/resume-cdc-log-file

Conversation

@teknogeek0

@teknogeek0 teknogeek0 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

resume-cdc.sh wrote to a fresh resume-cdc-<timestamp>.log on every run, so tee -a never actually appended — and, more importantly, that output was a monitoring blind spot: check-migration-status.sh and slack-migration-alerts.sh watch migration.log exclusively, so resume-cdc activity and errors never reached them. This switches resume-cdc.sh to migration.log, consistent with run-migration.sh and resume-migration.sh, giving one chronological log per migration (each phase writes a timestamped banner).

Changes

  • resume-cdc.sh: log to migration.log instead of a per-run timestamped file.
  • check-cdc-status.sh: drop the now-defunct resume-*.log lookup (it silently fell back to migration.log anyway) and read migration.log directly.
  • AGENTS.md / README.md: update docs that described the old split log — two references also wrongly attributed resume-*.log to resume-migration.sh, which has always written migration.log.

Note

Branch was behind main; merged it in (no conflicts), which also brings the find_pgcopydb autodetect already on main for this script.

teknogeek0 added 4 commits May 4, 2026 16:40
With resume-cdc.sh writing to migration.log, check-cdc-status.sh no longer
needs its resume-*.log lookup — it silently fell back to migration.log
anyway. Read migration.log directly and update the docs, which still
described a separate resume-cdc-TIMESTAMP.log (and wrongly attributed
resume-*.log to resume-migration.sh).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants