harshilv17 opened a new issue, #2736: URL: https://github.com/apache/iceberg-go/issues/2736
**Version** `main` (`1375f86`) ### Why A transaction scan should plan from a consistent transaction state. ### What `Transaction.Scan` reads `t.meta` (`txnMeta()` + `Build()`) and the `t.tbl` fields without `t.mx`, while `apply` swaps `t.meta` and `ExpireSnapshots` swaps `t.tbl` under it. Calling `Scan` concurrently with `SetProperties` or `ExpireSnapshots` on the same transaction is a data race. Same pattern as #2707, which #2732 fixes for `StagedTable`. [Review thread](https://github.com/apache/iceberg-go/pull/2732#pullrequestreview) ### Implementation Under `t.mx`, copy the metadata builder and read `t.tbl`, then build the scan from those, as #2732 does for `StagedTable`. -- 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]
