shihchengwei-lab commented on PR #2679:
URL: https://github.com/apache/iceberg-go/pull/2679#issuecomment-7106623743

   I tested `CommitTable` at `d14541fe` with a fake REST catalog and a 1-second 
key lifetime. The catalog applied the first commit, then dropped the connection 
before replying. I paused the test process while `send` was waiting to retry. 
The second POST reached the catalog 1.306 seconds after the first, with the 
same key and body.
   
   Once the key had expired, the catalog checked the snapshot requirement 
again. The first commit had already advanced the snapshot, so the catalog 
returned 409. It applied the commit exactly once, but `CommitTable` returned 
`ErrCommitFailed`.
   
   Could `send` recheck the key lifetime just before issuing the retry and 
return `ErrCommitStateUnknown` if the window closed during the wait?


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