Skip to content

Core: Add CommitStateUnknownException handling to REST#5694

Merged
rdblue merged 3 commits into
apache:masterfrom
rdblue:rest-fix-commit-state-unknown
Sep 2, 2022
Merged

Core: Add CommitStateUnknownException handling to REST#5694
rdblue merged 3 commits into
apache:masterfrom
rdblue:rest-fix-commit-state-unknown

Conversation

@rdblue

@rdblue rdblue commented Sep 2, 2022

Copy link
Copy Markdown
Contributor

This updates exception handling for the REST catalog where it deviates from the spec:

  • Throws CommitStateUnknownException for 500 and 504 for table commits. This is needed to suppress file deletion when a commit may have succeeded
  • Throws ServiceUnavailableException for 503 on all routes
  • Updates ServiceFailureException for 500 on non-commit routes to extend RESTException

@danielcweeks danielcweeks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@rdblue rdblue added this to the Iceberg 0.14.1 Release milestone Sep 2, 2022
@rdblue rdblue mentioned this pull request Sep 2, 2022
@rdblue rdblue merged commit f26861c into apache:master Sep 2, 2022
rdblue added a commit to rdblue/iceberg that referenced this pull request Sep 2, 2022
rdblue added a commit to rdblue/iceberg that referenced this pull request Sep 2, 2022
rdblue added a commit to rdblue/iceberg that referenced this pull request Sep 2, 2022
rdblue added a commit to rdblue/iceberg that referenced this pull request Sep 2, 2022
rdblue added a commit to rdblue/iceberg that referenced this pull request Sep 2, 2022
rdblue added a commit to rdblue/iceberg that referenced this pull request Sep 2, 2022
zhongyujiang pushed a commit to zhongyujiang/iceberg that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants