Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT 2024.2.0][#24658] YSQL: Switch pg_cron to normal SIGTERM
Summary: Original commit: d07daec / D39552 Switch pg_cron to normal using normal `SIGTERM` and `SIGQUIT` handlers. In an attempt to fix stuck pg_cron workers the handler of `SIGTERM` was changed to `quickdie` 4b4c201/D37591. But in `quickdie` mode postgres does not invoke `ReportBackgroundWorkerExit` which signals the parent process when its child backend exits. This causes pg_cron launcher to get stuck in `WaitForBackgroundWorkerShutdown`. With 111b65d/D39207 the issues with pg shutdown have been addressed and it is safe to now switch to the normal SIGTERM behavior which makes the background workers `die` in a clean manner. #24706 tracks the issue where in yb `ReportBackgroundWorkerExit` is not called when the backend has a non graceful exit. Fixes #24658 Jira: DB-13724 Test Plan: PgCronTest, DeactivateRunningJob Reviewers: telgersma Reviewed By: telgersma Subscribers: yql, ybase Differential Revision: https://phorge.dev.yugabyte.com/D39617
- Loading branch information