Skip to content

feat: cli to fail on sync error#794

Open
parisni wants to merge 2 commits intoapache:mainfrom
leboncoin:pr-fail-on-error
Open

feat: cli to fail on sync error#794
parisni wants to merge 2 commits intoapache:mainfrom
leboncoin:pr-fail-on-error

Conversation

@parisni
Copy link
Contributor

@parisni parisni commented Feb 3, 2026

Important Read

  • GitHub issue: TBD

What is the purpose of the pull request

This pull request adds a --failOnError CLI option to make catalog/table sync fail the process when any sync fails.

Brief change log

  • Added failOnError CLI flag to RunCatalogSync.
  • Propagated sync failures based on SyncResult status codes.

Verify this pull request

This pull request is already covered by existing tests, such as existing unit tests for catalog sync utilities (not run).

conversionController.syncTableAcrossCatalogs(
conversionConfig,
getConversionSourceProviders(tableFormats, tableFormatConverters, hadoopConf));
if (failOnError && hasSyncFailures(syncResults)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add similar functionality to RunSync?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@the-other-tim-brown good point. done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments