-
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
Unexpected beans added to the index and affecting restarting the application #29575
Comments
After talking with @stuartwdouglas, he mentioned that a possible cause is:
|
So the A few of months later it went into the core and got reused by the Basically, any client of Now, it seems that the I have no idea why it's indexed - I only found that it's indexed via |
By the way, the |
@mkouba Thanks. For now, I'm excluding Thanks for looking at it. Out of curiosity, why it does not happen when using resteasy classic? Is there any relation you can think of? I can re-run my tests, but if I just revert our extension to use resteasy classic, everything works fine. |
Note that |
Stuart was right that the |
- this is index is mandatory and is used to discover beans - the computing index is optional and can be used for other tasks, e.g. during type-safe resolution - if the computing index is not present the immutable index is used instead - fixes quarkusio#29575
#29641 should solve the problem... |
- this is index is mandatory and is used to discover beans - the computing index is optional and can be used for other tasks, e.g. during type-safe resolution - if the computing index is not present the immutable index is used instead - fixes quarkusio#29575
- this is index is mandatory and is used to discover beans - the computing index is optional and can be used for other tasks, e.g. during type-safe resolution - if the computing index is not present the immutable index is used instead - fixes quarkusio#29575
- this is index is mandatory and is used to discover beans - the computing index is optional and can be used for other tasks, e.g. during type-safe resolution - if the computing index is not present the immutable index is used instead - fixes quarkusio#29575 (cherry picked from commit c2ab342)
Describe the bug
I did not manage to come up with a reproducer using a regular Quarkus application. But the issue happens if you try out this branch https://github.com/pedroigor/keycloak/tree/tmp-reactive.
That branch is about switching from Resteasy Classic to Reactive in Keycloak. The issue does not happen if using Resteasy Classic and I'm not sure what is the relation, if any.
Basically, when reloading the application in dev mode or when running tests using the
QuarkusMainTestExtension
, reloading the application fails with this error:The first start of the application works fine and only
CDIDelegatingTransactionManager
is available to resolveTransactionManager
bean types. However, reloading the application causes thecom.arjuna.ats.jta.cdi.NarayanaTransactionManager
to also be recognized as a potential resolver hence failing with that error.If we remove the
com.arjuna.ats.jta.cdi.NarayanaTransactionManager
at build time from our extension, the issue does not happen:Expected behavior
Being able to reload the application without introducing beans that otherwise should be excluded.
Actual behavior
Failing to reload the application as per the description.
How to Reproduce?
s
)Output of
uname -a
orver
Linux fedora 6.0.9-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 16 17:50:45 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "18.0.2.1" 2022-08-18 OpenJDK Runtime Environment (build 18.0.2.1+1-1) OpenJDK 64-Bit Server VM (build 18.0.2.1+1-1, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.14.1.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: