-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Ignore sigterm when closing source/destination #20519
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea!
Can we pull the exit codes out into a separate class so they don't diverge?
Feel free to merge after.
Note: Worth throwing up a quick test to make sure we don't remove this functionality?
@davinchia I debated pulling the codes into a common place. On one hand, reducing repeated code is always a good thing. On the other hand, we may end up with different codes that we allow for a source vs destination. If we don't think that is a concern, then I am happy to move it to shared place. I will see about adding a test to cover the additional exit code. |
What
How
N.B.: I decided to put the set of ignored exit codes in both classes, as over time we may end up with a different set that we want to ignore for one but not both. I don't hold this belief strongly, so if we'd rather extract it to a common utility to avoid duplication, let me know.
Recommended reading order
DefaultAirbyteSource.java
DefaultAirbyteDestination.java
Tests