-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add FailureReason and AttemptFailureSummary schema (#9527)
* add FailureHelper * add jobPersistence method for writing failure summary * record source/destination failures and include them in ReplicationOutput and StandardSyncOutput * handle failures in ConnectionManagerWorkflow, persist them when failing/cancelling an attempt * rename attempt to attempt_id in FailureHelper * test that ConnectionManagerWorkflow correctly records failures * only set failures on ReplicationOutput if a failure actually occurred * test that source or destination failure results in correct failureReason * remove cancellation from failure summaries * formatting, cleanup * remove failureSummaryForCancellation * rename failureSource -> failureOrigin, delete retryable, clarify failureType enum values * actually persist attemptFailureSummary now that column exists * use attemptNumber instead of attemptId where appropriate * small fixes * formatting * use maybeAttemptId instead of connectionUpdaterInput.getAttemptNumber * missed rename from failureSource to failureOrigin
- Loading branch information
Showing
25 changed files
with
676 additions
and
20 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
airbyte-config/models/src/main/resources/types/AttemptFailureSummary.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
"$schema": http://json-schema.org/draft-07/schema# | ||
"$id": https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/AttemptFailureSummary.yaml | ||
title: AttemptFailureSummary | ||
description: Attempt-level summarization of failures that occurred during a sync workflow. | ||
type: object | ||
additionalProperties: false | ||
required: | ||
- failures | ||
properties: | ||
failures: | ||
description: Ordered list of failures that occurred during the attempt. | ||
type: array | ||
items: | ||
"$ref": FailureReason.yaml | ||
partialSuccess: | ||
description: True if the number of committed records for this attempt was greater than 0. False if 0 records were committed. | ||
type: boolean |
44 changes: 44 additions & 0 deletions
44
airbyte-config/models/src/main/resources/types/FailureReason.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
"$schema": http://json-schema.org/draft-07/schema# | ||
"$id": https://github.com/airbytehq/airbyte/blob/master/airbyte-config/models/src/main/resources/types/FailureReason.yaml | ||
title: FailureSummary | ||
type: object | ||
required: | ||
- failureOrigin | ||
- timestamp | ||
additionalProperties: false | ||
properties: | ||
failureOrigin: | ||
description: Indicates where the error originated. If not set, the origin of error is not well known. | ||
type: string | ||
enum: | ||
- unknown | ||
- source | ||
- destination | ||
- replicationWorker | ||
- persistence | ||
- normalization | ||
- dbt | ||
failureType: | ||
description: Categorizes well known errors into types for programmatic handling. If not set, the type of error is not well known. | ||
type: string | ||
enum: | ||
- unknown | ||
- userError | ||
- systemError | ||
- transient | ||
internalMessage: | ||
description: Human readable failure description for consumption by technical system operators, like Airbyte engineers or OSS users. | ||
type: string | ||
externalMessage: | ||
description: Human readable failure description for presentation in the UI to non-technical users. | ||
type: string | ||
metadata: | ||
description: Key-value pairs of relevant data | ||
type: object | ||
additionalProperties: true | ||
stacktrace: | ||
description: Raw stacktrace associated with the failure. | ||
type: string | ||
timestamp: | ||
type: integer |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.