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

   Closes #2736
   
   ## What
   - `Transaction.Scan` copies the metadata builder and reads the table under 
the transaction lock, and builds the scan from those. Same change as #2732 
makes for `StagedTable`.
   
   ## Why
   - `Scan` read `t.meta` and `t.tbl` without `t.mx`, while `apply` (e.g. from 
`SetProperties`) swaps `t.meta` and `ExpireSnapshots` swaps `t.tbl` under it, 
so calling them concurrently was a data race.
   
   ## Testing
   - `TestTransactionScanConcurrentWithSetProperties` and 
`TestTransactionScanConcurrentWithExpireSnapshots` run `Scan` concurrently with 
each. Both report a data race under `-race` without the change and pass with it.
   


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