[PLUGIN-1835] Add OracleErrorDetailsProvider#532
Merged
psainics merged 1 commit intodata-integrations:developfrom Jan 29, 2025
Merged
[PLUGIN-1835] Add OracleErrorDetailsProvider#532psainics merged 1 commit intodata-integrations:developfrom
psainics merged 1 commit intodata-integrations:developfrom
Conversation
46f2302 to
b2dd2d5
Compare
b2dd2d5 to
1c331a6
Compare
|
|
||
| @Override | ||
| protected ErrorType getErrorTypeFromErrorCode(int errorCode, String sqlState) { | ||
| int prefixLength = 6; |
Contributor
There was a problem hiding this comment.
Please add comments what is this logic exactly doing?
1c331a6 to
96702fd
Compare
itsankit-google
approved these changes
Jan 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ErrorDetailsProvider - Oracle DB [Source|Sink] plugin
Jira : PLUGIN-1835
Description
Implement Program Failure Exception Handling in Oracle DB Source/Sink plugin to catch known errors
Code change
OracleErrorDetailsProvider.javaDBUtils.javaOracleSink.javaOracleSource.javaE2E Changes
Open and capture logsstep when pipeline is expected to fail.Tests
Raw Logs
POST v3/namespaces/{namespace-id}/apps/{app-id}/workflows/DataPipelineWorkflow/runs/{run-id}/classify
[ { "stageName": "Oracle2", "errorCategory": "Plugin-\u0027DB Integrity Constraint Violation\u0027-\u0027Oracle2\u0027", "errorReason": "ORA-00001: unique constraint (C##BUILDUSER.PK_AGE) violated\n\nhttps://docs.oracle.com/error-help/db/ora-00001/. For more details, see https://docs.oracle.com/en/error-help/db/ora-index.html", "errorMessage": "Error occurred in the phase: \u0027Writing\u0027 with sqlState: \u002723000\u0027, errorCode: \u00271\u0027, errorMessage: ORA-00001: unique constraint (C##BUILDUSER.PK_AGE) violated\n\nhttps://docs.oracle.com/error-help/db/ora-00001/", "errorType": "USER", "dependency": "true", "errorCodeType": "SQLSTATE", "errorCode": "23000", "supportedDocumentationUrl": "https://docs.oracle.com/en/error-help/db/ora-index.html" } ]