Quarkus - Panache - Entity updates are not getting persisted #45661
Replies: 4 comments 4 replies
-
/cc @FroMage (panache), @loicmathieu (panache) |
Beta Was this translation helpful? Give feedback.
-
Does this ring any bell @yrodiere @Sanne ? This sounds more like an ORM issue to me. @gmuvvala-bss any chance you can create a reproducer for this? |
Beta Was this translation helpful? Give feedback.
-
I have seen the same issue. We have a set of unit test where we updates a ENUM field as described here. About 10% of times the tests fails because the field value is not persisted correct. I have added getter/setters to the entity, and made the field private. That fixed the issue. Test are now always green. We are using Postgres. The table has a handful columns and only a few records. |
Beta Was this translation helpful? Give feedback.
-
This looks a lot like #42479, which was a real pain to debug over many months, because it's semi-random (happens only when concurrent build threads execute in a certain order). It turned out to be caused by optimizations in Hibernate ORM's bytecode enhancement. I was surprised we didn't get feedback about it, but it seems we did -- in this discussion. Sorry I missed it, but if it's any consolation, I doubt my noticing this discussion would have changed anything: the main (huge) problem was to reproduce the bug reliably. Anyway, it's been fixed in Hibernate ORM 6.6.12, which will be used by Quarkus 3.22, and we'll likely backport the upgrade to Quarkus 3.15 and 3.20 too. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are using Quarkus Panache with AWS Aurora mysql in our application. We have simple db update as follows
Loan loan = Loan.findById(loanId.getValue());
loan.loanStatusTypeId = 100000;
loan.persist();
We found that some times this change is not getting persisted after transaction is committed . There is no error or transaction rollback. Updates to other entities made as part of the same transaction gets persisted successfully .
Few other points
Appreciate any help on this.
Beta Was this translation helpful? Give feedback.
All reactions