kozmirchuk opened a new pull request, #18419:
URL: https://github.com/apache/iceberg/pull/18419

   When several writer subtasks create the same branch concurrently, 
`TableUpdater#findOrCreateBranch` only treated `CommitFailedException` as 
"branch already created". 
   
   `createBranch(...).commit()` can also fail with `IllegalArgumentException` 
("Ref ... already exists") when its metadata refresh already sees the other 
writer's branch, before any commit is attempted. 
   
   Test plan: `testBranchConcurrentlyCreatedByAnotherWriter` caches the branch 
as missing, creates it through another table instance, then calls `update`. It 
fails without the fix and passes with it.
   
   ---
   **AI Disclosure**
   - Model: Claude Opus 5.5
   - Platform/Tool: Claude Code
   - Human Oversight: Reviewed at every step


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