-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fix broken MongoClientBuildItem support #7385
Conversation
There is one thing that needs to change however for The |
This is the behaviour I will need to change ... |
Yes of course, but it's necessary, otherwise we need to make the beans unremovable which goes counter to the point of the optimization :) |
I don't really see the point of defining a mongoclient connection and not using it in the code. I don't think that bean removal should cover such case. |
That's not the issue 😉 The issue is that user code can use only the blocking client and not the reactive client. In that case, no bean will be created for the reactive client. Ditto if the opposite happens. We definitely can make the beans unremoveable, but that goes counter to what the optimization actually is meant for. |
That's mine, but I will look at it later, let stop the digression here :) |
I am not hell bent on the |
@geoand in fact I just have an enlightment (I don't know if it's the correct word). |
Excellent 👌 |
...godb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but I will need to test it to see if it fixes my issue.
Maybe hold on to merge it untill I have time to test it (end of week)
The issue is we really need this for Camel. So I propose merging ASAP and then making any extra charges if necessary when you have the time to test |
I'm OK with this, I didn't saw prior to my comment that it fixes the issue for Camel. |
Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have the time to carefully review this so I'm gonna trust you on that one, considering it's blocking for Camel and CI is green.
Fixes: #7378