3.2.0: calling overridden method does not start transaction #34723
Labels
area/arc
Issue related to ARC (dependency injection)
area/narayana
Transactions / Narayana
kind/bug
Something isn't working
Describe the bug
https://github.com/Shohou/quarkus-super-tr
It has standard auto generated project with panache and rest-reactive.
GreetingResource.hello()
callsSomeService.doSomething()
which doesn't have@Transactional
annotation and doesn't start transaction.SomeService.doSomething()
callssuper.doSomething()
ofSomeAbstractService
which has@Transactional
and should start transaction, but with quarkus3.2.0.Final
this doesn't happen. But it does start transaction if I fall back toquarkus 3.1.3.Final
Expected behavior
calling
SomeAbstractService.doSomething()
from overridden method starts transaction as it has@Transactional
annotation.Actual behavior
transaction not started and attempt to modify and persist entity fails with
PersistentObjectException
exception saying entity is detachedHow to Reproduce?
Reproducer: https://github.com/Shohou/quarkus-super-tr
Steps to reproduce:
./gradlew clean quarkusDev
GET http://localhost:8080/hello
and check quarkusDev consoleTransaction status - 6
and then throwsPersistentObjectException
exception3.1.3.Final
forquarkusPluginVersion
andquarkusPlatformVersion
./gradlew clean quarkusDev
GET http://localhost:8080/hello
and check quarkusDev consoleTransaction status - 0
, doesn't throw exception and rest call succeedsOutput of
uname -a
orver
No response
Output of
java -version
openjdk version "17.0.7"
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.2.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: