Skip to content
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

Implementation of signal handlers #17

Open
Zerpet opened this issue Apr 26, 2016 · 1 comment
Open

Implementation of signal handlers #17

Zerpet opened this issue Apr 26, 2016 · 1 comment
Assignees
Milestone

Comments

@Zerpet
Copy link
Collaborator

Zerpet commented Apr 26, 2016

This issue tracks the development of signal handlers for gpcheckintegrity. The program should handle signals gracefully. At the moment, it prints the stack trace and exits, which is not very user friendly.

The main handlers should be:

  1. SIGTERM should stop things gracefully and close connections, then do a clean exit.
  2. SIGINT should stop things gracefully, close connections and ignore subsequent signals of this kinds (use case of ctrl-c storm)
  3. Other signals like SIGQUIT and SIGABRT should behave the same as point 1
@ielizaga ielizaga modified the milestone: Release 1.1 Jun 15, 2016
@ielizaga ielizaga self-assigned this Jun 15, 2016
@ielizaga ielizaga removed their assignment Jul 11, 2021
@ielizaga
Copy link
Owner

ielizaga commented Jul 13, 2021

Greenplum 6.X includes the very old python 2.7:

[gpadmin@localhost ~]$ which python
/usr/local/greenplum-db-6.16.3/ext/python/bin/python
[gpadmin@localhost ~]$ python --version
Python 2.7.12

Can likely leverage the Signal python library to do this.
https://docs.python.org/2.7/library/signal.html

@ielizaga ielizaga self-assigned this Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants