- Notifications
You must be signed in to change notification settings - Fork 4.9k
[DB sources] : Exit when encountering a config error #38538
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
Conversation
| The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
| cdkVersionRequired = '0.35.11' | ||
| features = ['db-sources'] | ||
| useLocalCdk = false | ||
| useLocalCdk = true |
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.
not sure if we need to merge this change (and the ones above and below) ?
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.
Will revert this when cdk is published and is toggled
| | ||
| @Test | ||
| @Throws(Exception::class) | ||
| fun testReadException() { |
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.
could you explain why we need to remove this test?
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.
This test fails now that we are properly exiting when catching the exception. We are changing the behavior of re-throwing the exception
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.
I see, in this case, we might be interested in using this JUnit rule to verify the exit status:
https://stefanbirkner.github.io/system-rules/#ExpectedSystemExit
| /publish-java-cdk
|
| /publish-java-cdk
|
Currently, sources don't exit when encountering a config error, but instead default to the behavior of rethrowing. This causes
AirbyteExceptionHandlerto throw a system error thereby causing config errors to be reported to Sentry (potentially paging the OC rotation).Fix here is to treat config errors the same as transient errors and exit as soon as they are encountered