harshilv17 opened a new pull request, #2732: URL: https://github.com/apache/iceberg-go/pull/2732
Closes #2707 ## What - `Transaction.StagedTable` copies the metadata builder under the transaction lock and builds the staged view from the copy. ## Why - `StagedTable` read `t.meta` without `t.mx`, while `apply` (e.g. from `SetProperties`) swaps `t.meta` under it, so calling them concurrently was a data race. ## Testing - `TestTransactionStagedTableConcurrentWithSetProperties` runs both concurrently. It reports a data race under `-race` without the change and passes 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]
