Hi Nikita, sorry for the late reply, managed to miss a new post in my cayenne mail folder. What I didn't miss was the merge that just happened on STABLE-4.2 :).
Just tried it out and from trying it on at least my test project, the fix works great — so huge thanks! Cheers, - hugi > On 8 Oct 2025, at 09:05, Nikita Timofeev <[email protected]> wrote: > > Here's a PR: https://github.com/apache/cayenne/pull/631 > And an issue: https://issues.apache.org/jira/browse/CAY-2899 > > As mentioned in the PR comment it's more like a workaround. The proper fix > goes too deep, to safely try it in the 4.2 branch. > Also it could be somewhat easily implemented in the application. > > On Sat, Sep 20, 2025 at 2:03 PM Hugi Thordarson <[email protected]> wrote: > >> Here's one big happy yay! from a rocky little island in the middle of the >> Atlantic :) >> >> Thanks for checking this out, >> - hugi >> >> >>> On 19 Sep 2025, at 13:09, Nikita Timofeev <[email protected]> >> wrote: >>> >>> Hi >>> >>> Finally got some news on this, I could see where the problem exactly is >> and >>> it looks like the fix won't lead to a global refactoring. Still need more >>> time to comprehend everything and resolve. >>> >>> On Wed, Jul 23, 2025 at 12:03 AM Andrus Adamchik <[email protected]> >>> wrote: >>> >>>> Hi Sven, >>>> >>>> Looks like the earlier related message from Hugi on dev@ went >> unanswered. >>>> So I just made a note to myself to make sure we check this one out with >>>> Nikita when he's back from vacation early in August. >>>> >>>> Thanks, >>>> Andrus >>>> >>>> >>>>> On Jul 21, 2025, at 8:47 AM, Sven Umbricht <[email protected]> >> wrote: >>>>> >>>>> Hi all, >>>>> >>>>> we're facing an issue with missing CommitLogListener events after >>>> upgrading from Cayenne 4.1 to 4.2. In the call to the >> CommitLogListener's >>>> onPostCommit-method the passed ChangeMap does not contain all changes >> made >>>> during the last commit. >>>>> >>>>> Hugi has already helped us with investigating this and managed to >>>> replicate the problem in a small example project: >>>>> https://github.com/hugithordarson/xx-c42-listen >>>>> >>>>> It seems that the ChangeMap is wiped when modifying an object accessed >>>> via a relationship. Our listener is also configured to use >>>> excludeFromTransaction-mode, so this may or may not be related to >> CAY-2735. >>>> Any help in this matter is appreciated. >>>>> >>>>> Best regards >>>>> Sven >>>> >>>> >>> >>> -- >>> Best regards, >>> Nikita Timofeev >> >> > > -- > Best regards, > Nikita Timofeev
