-
Notifications
You must be signed in to change notification settings - Fork 27
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
Introduce option for *NOT* connecting to cassandraQL during startup #124
Comments
Hi thanks for reporting this. Have you tried disabling eager session initialization? This could be a quick win for you. Line 40 in c6c8b0d
|
Thanks @adutra, this seems exactly as a solution for me. I'll try this parameter tomorrow. |
For that I think we would need to expose the Maybe you could contribute a PR to expose that bean? |
@adutra To be honest, for my case this 'ProgrammaticDriverConfigLoaderBuilder' is not necessary. Once extension for cassandra-quarkus is used, I can use standard code to connect to cassandra using java-driver. Though It could be nice to have it for other use cases... I'll keep that in mind and look into creation of PR if time allows. |
@adutra Parameter If parameter is set to false, the I can see in log
application does not wait for connection, my tests are executed, but once my tests are finished, extension tries to connect again. Which means that my test execution doesn't finish. I'm attaching trace log with my execution (there is 1 dummy test) and once camel is stopped, connection to cassandra with default values is trying to create. |
I think you just spotted a bug indeed. I need to investigate more, but it seems to come from the fact that we add a shutdown task to close the session, see here. I suspect that calling |
Hi @tomekl007, |
Closing because it is solved by the |
I'm working on camel-quarkus extension for CassandraQL (apache/camel-quarkus#1355)
It would be nice to use this quarkus extension.
However there is a problem, which is blocking my attempts. According to the code and quarkus blog, it is necessary to define connection parameters, which are used for connecting to CassabdraQL.
IMHO it would be nice, if this extension could start also in some "offline" mode, without connecting to DB. In that case it won't be possible to inject QuarkusCqlSession. But it would be possible to create similar session(s) programatically
┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: