-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
AWS: Check commit status after failed commit if AWS client performed retries #7198
Conversation
Confirmed this doesn't break the existing integration tests. Going to add some additional ones to better replicate the scenario this is designed to fix. |
aws/src/main/java/org/apache/iceberg/aws/AwsClientFactories.java
Outdated
Show resolved
Hide resolved
aws/src/main/java/org/apache/iceberg/aws/AwsClientFactories.java
Outdated
Show resolved
Hide resolved
aws/src/main/java/org/apache/iceberg/aws/AwsClientFactories.java
Outdated
Show resolved
Hide resolved
aws/src/main/java/org/apache/iceberg/aws/dynamodb/DynamoDbTableOperations.java
Outdated
Show resolved
Hide resolved
aws/src/integration/java/org/apache/iceberg/aws/glue/TestGlueCatalogCommitFailure.java
Show resolved
Hide resolved
aws/src/integration/java/org/apache/iceberg/aws/glue/TestGlueCatalogCommitFailure.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great @ChristinaTech ! Left some comments/questions, thanks for the contribution!
aws/src/main/java/org/apache/iceberg/aws/glue/GlueTableOperations.java
Outdated
Show resolved
Hide resolved
aws/src/main/java/org/apache/iceberg/aws/dynamodb/DynamoDbTableOperations.java
Outdated
Show resolved
Hide resolved
aws/src/main/java/org/apache/iceberg/aws/glue/GlueTableOperations.java
Outdated
Show resolved
Hide resolved
aws/src/main/java/org/apache/iceberg/aws/dynamodb/DynamoDbTableOperations.java
Outdated
Show resolved
Hide resolved
aws/src/main/java/org/apache/iceberg/aws/dynamodb/DynamoDbTableOperations.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, thanks for the fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for the work @ChristinaTech ! Thanks for the reviews @amogh-jahagirdar @JonasJ-ap ! |
Thanks @ChristinaTech. @jackye1995 @amogh-jahagirdar @JonasJ-ap Could you please include this fix in the next release? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
This PR fixes the issue described by #7151 where a commit can succeed but Glue or Dynamo backed tables see a failure and delete the now-committed metadata.