yadavay-amzn opened a new pull request, #16319:
URL: https://github.com/apache/iceberg/pull/16319

   ## Summary
   
   Adds ETag/If-None-Match support to `RESTTableOperations.refresh()` and 
`commit()`, so repeated refresh calls skip re-downloading unchanged table 
metadata.
   
   Follow-up to #15109 (freshness-aware table loading in REST catalog).
   
   ## Changes
   
   When `RESTTableOperations.refresh()` receives an ETag from the server, 
subsequent `refresh()` calls send `If-None-Match` and return the current 
metadata on `304 Not Modified`. The ETag is also captured from commit responses 
so the next refresh benefits immediately.
   
   This reduces bandwidth and server load for repeated refresh calls (retries, 
transactions, reconciliation) without any API changes or cache coupling.
   
   ## Scope
   
   This is the minimal self-contained slice of #15109. Deliberately out of 
scope:
   - FileIO credential refresh (blocked by `final` field, needs design 
discussion)
   - Cache callback to RESTSessionCatalog (adds coupling, can be a follow-up)
   - Config/credential updates on commit (REST spec does not include them)
   
   ## Testing
   
   5 new tests in `TestRESTTableOperationsFreshness`:
   - ETag sent on second refresh
   - Current metadata returned on 304
   - No header sent without prior ETag
   - ETag captured from commit response
   - If-None-Match merged with existing read headers
   
   ## Generative AI
   
   Generated-by: Claude Opus 4.7
   


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