[GOBBLIN-2165] Support partial commit semantic from CopyDataPublisher #4066
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.
Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
Description
When Gobblin is using partial commit semantics, it is possible for files to be missing on the destination after the job is completed (in line with the semantic where any number of files may be missing, as long as one file is successfully published it can still be considered successful).
Currently, Gobblin will raise a FileNotFoundException when this file is being published if its performs a metadata sync, which prevents the job from running through its postpublish steps. We still want the postpublish steps to go through as they may contain important steps for the job to be considered at least partially successful (permission sync, table registration).
This PR allows one to add the configurations
And have a job publish all of its successful files but still mark the job as failed.
It is important that certain table copies (e.g. iceberg distcp) should not be supporting partial copy semantics in the same way as it would break the table manifest. Also care should be taken with hive copies so that subsequent copies will still copy the missing files (turn off fast partition skip predicate).
Tests
Commits