-
Notifications
You must be signed in to change notification settings - Fork 30
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
[PLUGIN-1824] ErrorDetailsProvider - MySql Source/Sink plugin #523
base: develop
Are you sure you want to change the base?
Conversation
@@ -114,7 +119,7 @@ public void configurePipeline(PipelineConfigurer pipelineConfigurer) { | |||
|
|||
if (sourceConfig.canConnect()) { | |||
try { | |||
stageConfigurer.setOutputSchema(getSchema(driverClass)); | |||
stageConfigurer.setOutputSchema(getSchema(driverClass, collector)); |
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.
we are already adding the exception in failure collector below by catching it, why is this extra step needed?
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.
also can you please add sql state and error code in the message on line 127?
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.
Added SQL error details.
ErrorDetailsProvider - MySql [Source|Sink] plugin
Jira : PLUGIN-1824
Description
Implement Program Failure Exception Handling in MySql Source/Sink plugin to catch known errors
Code change
DBErrorDetailsProvider.java
MysqlErrorDetailsProvider.java
DBRecord.java
AbstractDBSink.java
AbstractDBSource.java
MysqlConstants.java
MysqlSink.java
MysqlSource.java
MysqlUtil.java