-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Transactional should not override @RunOnVirtualThread in reasteasy reactive #34319
Comments
AFAIK narayana is now pinnnig the virtual thread; maybe a fix is in flight for that. |
That is what I think the issue is saying |
It is, I made the pr (merged):
|
Yes, it got fixed last week. So we can finally improve. Do you know when we would be able to update narayana? Because that's what will drive the change. |
They said it will be in 7.x as some public methods got their synchronized flags removed (public API change) |
Also, what are the plans regarding virtual threads and classic resteasy integration? It seems virtual threads are a better fit for blocking (non-reactive) semantics. |
The plan is to release Narayana with @imperatorx 's enhancement this week. |
|
The quarkus component upgrade PR has nearly completed its checks. |
I just merged the narayana update - will lift the limitation tomorrow |
Fixed with #34808 |
Describe the bug
PR #24942, as choice of caution, disables virtual threads when
@Transactional
is added to a reasteasy reactive method. Narayana will soon (7.0) have support for virtual threads (jbosstm/narayana#2077), so I think this restriction should go away for those who want to experiment with or build on this.With narayana built from trunk and a loom friendly jdbc driver, @RunOnVirtualThread works if the method is not annotated with
@Transactional
, but there is programmatic transaction control inside usingQuarkusTransaction.requiringNew()
.Expected behavior
Actual behavior
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
19
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.1.2.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: