[🍒][PLUGIN-1885] Add MariadbErrorDetailsProvider #581
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🍒 [cherrypick]
Commits :
PR:
ErrorDetailsProvider - Mariadb [Source|Sink] plugin
Jira : PLUGIN-1885
Description
Implement Program Failure Exception Handling in Mariadb Source/Sink plugin to catch known errors
Code change
MariadbErrorDetailsProvider.javaDBUtils.javaMariadbSink.javaMariadbSource.javaTests
Test Case (Violate check constrain)
Table Used
Raw Logs
POST v3/namespaces/{namespace-id}/apps/{app-id}/workflows/DataPipelineWorkflow/runs/{run-id}/classify
[ { "stageName": "MariaDB", "errorCategory": "Plugin-'DB Warning'-'MariaDB'", "errorReason": "SQL Exception occurred: [Message='(conn=55) Data truncated for column 'gender' at row 1', SQLState='01000', ErrorCode='1265']. For more details, see https://mariadb.com/kb/en/mariadb-error-codes/", "errorMessage": "Error occurred in the phase: 'Writing' with sqlState: '01000', errorCode: '1265', errorMessage: SQL Exception occurred: [Message='(conn=55) Data truncated for column 'gender' at row 1', SQLState='01000', ErrorCode='1265'].", "errorType": "USER", "dependency": "true", "errorCodeType": "SQLSTATE", "errorCode": "01000", "supportedDocumentationUrl": "https://mariadb.com/kb/en/mariadb-error-codes/" } ]