Re: Incomplete ChangeMap passed to CommitLogListener
Hugi Thordarson <[email protected]> Wed, 22 Oct 2025 12:34:18 +0000
| Newsgroups | gmane.comp.java.cayenne.user |
|---|---|
| Message-ID | <[email protected]> |
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 =E2=80=94 so huge thanks! Cheers, - hugi > On 8 Oct 2025, at 09:05, Nikita Timofeev <[email protected]> = wrote: >=20 > Here's a PR: https://github.com/apache/cayenne/pull/631 > And an issue: https://issues.apache.org/jira/browse/CAY-2899 >=20 > 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. >=20 > On Sat, Sep 20, 2025 at 2:03=E2=80=AFPM Hugi Thordarson = <[email protected]> wrote: >=20 >> Here's one big happy yay! from a rocky little island in the middle of = the >> Atlantic :) >>=20 >> Thanks for checking this out, >> - hugi >>=20 >>=20 >>> On 19 Sep 2025, at 13:09, Nikita Timofeev = <[email protected]> >> wrote: >>>=20 >>> Hi >>>=20 >>> 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. >>>=20 >>> On Wed, Jul 23, 2025 at 12:03=E2=80=AFAM Andrus Adamchik = <[email protected]> >>> wrote: >>>=20 >>>> Hi Sven, >>>>=20 >>>> 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. >>>>=20 >>>> Thanks, >>>> Andrus >>>>=20 >>>>=20 >>>>> On Jul 21, 2025, at 8:47=E2=80=AFAM, Sven Umbricht = <[email protected]> >> wrote: >>>>>=20 >>>>> Hi all, >>>>>=20 >>>>> 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. >>>>>=20 >>>>> 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 >>>>>=20 >>>>> 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. >>>>>=20 >>>>> Best regards >>>>> Sven >>>>=20 >>>>=20 >>>=20 >>> -- >>> Best regards, >>> Nikita Timofeev >>=20 >>=20 >=20 > --=20 > Best regards, > Nikita Timofeev