[🍒][PLUGIN-1870] Add BigtableErrorDetailsProvider #1551
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 - BigTable [Source|Sink] plugin
Jira : PLUGIN-1870
Description
Implement Program Failure Exception Handling in BigTable Source/Sink plugin to catch known errors.
Code change
BigtableErrorDetailsProvider.javaBigtableSink.javaBigtableSource.javaGCPErrorDetailsProvider.javaGCPUtils.javaTests
[ { "stageName": "Bigtable", "errorCategory": "Plugin-'Bigtable'", "errorReason": "403 PERMISSION_DENIED: Access denied. Missing IAM permission: bigtable.tables.mutateRows.. Please check you have permission to access this resource. For more details, see https://cloud.google.com/bigtable/docs/status-codes.", "errorMessage": "com.google.bigtable.repackaged.io.grpc.StatusRuntimeException: [ErrorCode='403'] PERMISSION_DENIED: Access denied. Missing IAM permission: bigtable.tables.mutateRows.", "errorType": "USER", "dependency": "true", "errorCodeType": "HTTP", "errorCode": "403", "supportedDocumentationUrl": "https://cloud.google.com/bigtable/docs/status-codes" } ]Spanner [GRPC = 7]
[ { "stageName": "Spanner2", "errorCategory": "Plugin-\\u0027Spanner2\\u0027", "errorReason": "403 PERMISSION_DENIED: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Caller is missing IAM permission spanner.databases.updateDdl on resource projects/cdf-entcon/instances/e2e-20231011-09-35-048376917/databases/e2e-source-db-a8e7a64a-c.. Please check you have permission to access this resource. For more details, see https://cloud.google.com/spanner/docs/error-codes.", "errorMessage": "com.google.cloud.spanner.SpannerException: [ErrorCode\\u003d\\u0027403\\u0027] PERMISSION_DENIED: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Caller is missing IAM permission spanner.databases.updateDdl on resource projects/cdf-entcon/instances/e2e-20231011-09-35-048376917/databases/e2e-source-db-a8e7a64a-c.", "errorType": "USER", "dependency": "true", "errorCodeType": "HTTP", "errorCode": "403", "supportedDocumentationUrl": "https://cloud.google.com/spanner/docs/error-codes" } ]