Andrea Cosentino created CAMEL-26841:
----------------------------------------

             Summary: camel-openfga - add mutation conflict options and 
combined writes
                 Key: CAMEL-26841
                 URL: https://issues.apache.org/jira/browse/CAMEL-26841
             Project: Camel
          Issue Type: Improvement
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino


h2. Problem / motivation
Tuple writes/deletes use separate SDK convenience calls without conflict 
options. Provisioning/reconciliation routes need explicit handling of duplicate 
writes and missing deletes, and sometimes need grant/revoke in one transaction.

h2. Proposed scope
Expose explicit duplicate-write and missing-delete conflict options with 
current error defaults. Add a combined write operation for atomic grant/revoke 
within server limits. If a bulk nontransactional mode is offered, make chunking 
and partial failures explicit rather than silently changing atomicity.

h2. Acceptance criteria / validation
* Verify duplicate/missing conflict modes and compatible defaults.
* Verify combined update atomicity, invalid batch behavior and transaction 
limits.
* Document retry implications, counters and per-tuple errors where applicable.
* Keep configured tuple precedence and model pinning behavior.

h2. References
* 
https://github.com/apache/camel/blob/5686684cb418/components/camel-openfga/src/main/java/org/apache/camel/component/openfga/OpenFgaProducer.java#L559
* https://openfga.dev/blog/ignore-duplicate-writes-announcement

Source: read-only component audit at 5686684cb418. Recheck current main before 
implementing; historical references identify the audited code.

_AI-generated by Codex on behalf of oscerd (JIRA: acosentino)._



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to