tanmayrauth opened a new pull request, #964:
URL: https://github.com/apache/iceberg-go/pull/964

   [2: Version-hint 
management](https://github.com/apache/iceberg-go/issues/798#issuecomment-4320784323)
   Implement readVersionHint (reads the integer from version-hint.text, returns 
0 on any error), writeVersionHint (writes to a temp file then renames, 
best-effort with errors logged but not returned), and findVersion with the full 
three-tier fallback: read hint and validate the file exists, scan forward from 
the hinted version until no file is found, and if there's no hint at all, list 
the metadata directory to find the max version then scan forward. Tests cover 
round-trip read/write, missing hint, corrupt hint, stale hint (v3 exists but 
hint says 2), scan-forward behavior, directory listing fallback, and the 
no-metadata-files case.
   
   
   Relates to #798
   
    


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