rkondakov opened a new pull request, #3821: URL: https://github.com/apache/iceberg-rust/pull/3821
## Which issue does this PR close? - Closes #3820. ## What changes are included in this PR? A 409 from `update_table` now carries the `message` and `type` of the server's error response as context, so the error states the server's reason for the refusal, such as a failed requirement or a rejected sequence number. An empty or unparseable body adds no context. Kind (`CatalogCommitConflicts`) and the retryable flag are unchanged, so `Transaction::commit` still retries a conflict. ## Are these changes tested? Yes. Two unit tests in `crates/catalog/rest/src/catalog.rs` run `Transaction::commit` with retries disabled against a mock server that answers the commit with 409: one with an `ErrorResponse` body checks the whole error text, the kind and the retryable flag; the other checks that an empty or non-JSON body gives the same error as before. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
