AynSiddiqui commented on PR #2679:
URL: https://github.com/apache/iceberg-go/pull/2679#issuecomment-7136908103

   Pushed 2c909d7, f74dd52 and 4c5175f. For commit calls, once `send` has 
resent the request, every error `send` returns is now `ErrCommitStateUnknown`. 
Transport and context errors stay wrapped. In `CommitTable`, a post-resend 
conflict (409) or rejection (400/401/403/404) keeps the server message as text 
but not its `table.ErrCommitFailed` / `table.ErrCommitRejected` chain: with the 
chain, the table commit loop would refresh and replay the commit, or treat it 
as rejected and clean up its files. `TestCommitResendConflictAfterExpiry` 
delays the second attempt past a PT1S lifetime, answers 409 in one case and 400 
in another, and checks for `ErrCommitStateUnknown` and neither table sentinel.
   
   `send` also rechecks the window when the backoff timer fires, for every 
keyed call: if it has closed, commits return `ErrCommitStateUnknown` and 
plan/task calls return the last error, without resending. 
`TestKeyedResendTimerRechecksExpiry` covers both. `newKeyedCall` now uses 
`uuid.Parse` and returns its error.
   
   On plan/task POSTs: yes, intended. Without an advertised lifetime, `send` 
does not resend them; with one, it resends only if the window is still open 
when the backoff timer fires, and only on 500/502/503/504, timeouts and 
connection errors (net/http's own redirect replays are separate, as in the 
description). They don't change table state, though, so if you'd rather keep 
the old 408/429/5xx retry for them when no lifetime is advertised, I can 
restore it here.
   
   The questions (a)–(f) under "For reviewers" are still open.
   


-- 
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]

Reply via email to