Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rearrange try/catch blocks in HiveMetastoreTableOperations #12420

Merged
merged 1 commit into from
May 17, 2022

Conversation

alexjo2144
Copy link
Member

Description

Minor code cleanup

Is this change a fix, improvement, new feature, refactoring, or other?

Refactoring

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

Iceberg connector, HMS Catalog

How would you describe this change to a non-technical end user or system administrator?

n/a

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(x) No release notes entries required.
( ) Release notes entries required with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label May 16, 2022
@alexjo2144 alexjo2144 requested review from findepi and homar May 16, 2022 15:03
@alexjo2144 alexjo2144 added the no-release-notes This pull request does not require release notes entry label May 16, 2022
@findepi
Copy link
Member

findepi commented May 16, 2022

That narrows scope where CommitFailedException can be thrown. Can you attach reasoning to the commit message?

@alexjo2144 alexjo2144 force-pushed the iceberg/code-cleanup branch from c455902 to cc9f3da Compare May 16, 2022 15:30
The only retryable failures in this block are the `replaceTable` call
and the CommitFailedException already thrown if the metadata location
has been updated. Exceptions thrown by checkState, or because the
table does not exist should not retry.
@alexjo2144 alexjo2144 force-pushed the iceberg/code-cleanup branch from cc9f3da to ccb884d Compare May 16, 2022 15:30
@alexjo2144
Copy link
Member Author

Sure, updated

@findepi findepi merged commit 8f0dc10 into trinodb:master May 17, 2022
@github-actions github-actions bot added this to the 382 milestone May 17, 2022
@alexjo2144 alexjo2144 deleted the iceberg/code-cleanup branch May 17, 2022 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

3 participants