Skip to content

Rest Catalog UpdateTableRequest IOException handling could cause data discrepancy in case of response getting lost #6778

@agnes-xinyi-lu

Description

@agnes-xinyi-lu

Apache Iceberg version

1.0.0

Query engine

None

Please describe the bug 🐞

Current HttpClient in RestCatalog converts all the IOExceptions to RestException instead of CommitStateUnknownException, if exception happens after the server side commits successfully, client would treat it as a runtime exception and cleanup datafiles that actually got committed.
A safer option might be to load table and check commit status when IOException happens, if we are still not able to get results due to network issues, maybe convert to CommitStateUnknownException?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions