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

   ## Why
   
   Two writers can pass their initial path checks against the same snapshot. If 
both add the same file, the second writer can replay its update after the first 
commits and leave two live entries for that file.
   
   [Iceberg content-file 
uniqueness](https://github.com/apache/iceberg/blob/3deb2b6617be2f7047a6e9b830b755f8a62e9ca3/format/spec.md#L867-L869)
 · [Go retry 
defaults](https://github.com/apache/iceberg-go/blob/f7dc20dfcf567302c443cc538839bd6421cc7312/table/properties.go#L192-L211)
 · [Java refresh before snapshot 
validation](https://github.com/apache/iceberg/blob/3deb2b6617be2f7047a6e9b830b755f8a62e9ca3/core/src/main/java/org/apache/iceberg/SnapshotProducer.java#L298-L307)
   
   ## What
   
   Reject a replayable direct append or replacement when a concurrent commit 
added the same path and the path is still live.
   
   ## Implementation
   
   Reuse RowDelta's changed-entry check and register it with the staged update 
under the transaction lock. Allow paths that a later concurrent commit removed. 
Keep the explicit append opt-outs and the existing path-based rewrite conflict 
error.
   
   Related to #2629.
   


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