[ 
https://issues.apache.org/jira/browse/CAY-2866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Timofeev closed CAY-2866.
--------------------------------
    Resolution: Fixed

*4.2*: 
https://github.com/apache/cayenne/commit/f1291235d2dd40b2b47ceb141772e256a5b9da26

> DefaultDataDomainFlushAction breaks on circular relationship update
> -------------------------------------------------------------------
>
>                 Key: CAY-2866
>                 URL: https://issues.apache.org/jira/browse/CAY-2866
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.2, 4.2.1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Critical
>             Fix For: 4.2.2, 5.0-M1
>
>
> {{DefaultDataDomainFlushAction}} spawns DB row change operation for each side 
> of the relationship. It is later discarded if there's nothing to change in 
> the DB at the query stage. But that additional operation could lead to a 
> faulty cycle detection in the sorting stage.
> One example of this - simple update of a self circular dependency in the 
> entity, see https://lists.apache.org/thread/kgrmzyb4z6py6rrvsr6dfvgj4km4rfz1 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to