Added
Two independent jobs update different customer rows in a Delta table. Both read the same table version, then each writes changes to disjoint key ranges. The first job commits successfully; the second receives a concurrent transaction exception. The team cannot serialize the jobs because their schedules overlap, and they need to preserve Delta's transactional guarantees. What is the best response?
Delta uses optimistic concurrency control: a transaction reads a snapshot and validates conflicts at commit. A concurrent transaction failure should be handled by refreshing the snapshot and rerunning the transaction logic so its predicates and write set are checked against the new state. Disabling concurrency control is not the safe resolution. Parquet would remove Delta transaction guarantees rather than provide safe concurrent updates. Overwriting can erase the first job's committed changes.