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

   Hive commits use exclusive HMS table locks, but drop and rename previously 
bypassed that protocol and could race with metadata publication.
   
   Drop now acquires the table lock and re-reads the table while holding it 
before deleting the catalog entry. Rename requests source and destination locks 
atomically in lexical order, then re-reads the source and verifies that its 
metadata location has not changed before altering the descriptor. Lock 
acquisition failures and rename revalidation conflicts wrap 
`table.ErrCommitFailed` so callers can retry safely.
   
   The lock helper now supports sorted, deduplicated multi-table requests while 
retaining the single-table entry point used by commits. Tests cover component 
ordering, retryable drop conflicts, rename metadata revalidation, and lock 
participation in drop and purge paths.
   
   Tests:
   - `go test ./...`
   - `golangci-lint run --timeout=10m`


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