delta
delta copied to clipboard
[Spark] Make txn readPredicates thread safe
Which Delta project/connector is this regarding?
- [X] Spark
- [ ] Standalone
- [ ] Flink
- [ ] Kernel
- [ ] Other (fill in here)
Description
OptimisticTransaction.readPredicates may be updated by multiple threads that call filesForScan. This commit turns it from an ArrayBuffer to a ConcurrentLinkedQueue to be thread safe.
How was this patch tested?
Existing tests.
Does this PR introduce any user-facing changes?
No