You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "nsivabalan (via GitHub)" <gi...@apache.org> on 2026/06/25 02:35:26 UTC

Re: [I] The java client missing some supports on the conflict handling? [hudi]

nsivabalan commented on issue #15163:
URL: https://github.com/apache/hudi/issues/15163#issuecomment-4795328126

   Triaging this against current `master`: the Java write client no longer has the gap reported here. `HoodieJavaWriteClient.commit` delegates to the shared `BaseHoodieWriteClient.commitStats`, which wraps the commit in `txnManager.beginStateChange(...)` / `endStateChange(...)` and invokes `preCommit` → `resolveWriteConflict` (`TransactionUtils.resolveWriteConflictIfAny`) inside the lock — the same path used by the Spark client. Concurrent multi-writer commits with `hoodie.write.concurrency.mode=optimistic_concurrency_control` and a configured lock provider should now go through optimistic concurrency control rather than racing on the timeline file. References: `HoodieJavaWriteClient.java:88-98`, `BaseHoodieWriteClient.java:246-314, 427-435`, `BaseHoodieClient.java:228-243`. Closing as fixed unless someone can reproduce on a recent release — please reopen with a repro on current master if so.


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org