-
Notifications
You must be signed in to change notification settings - Fork 873
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
Cassandra integration creates too many sessions #3092
Comments
hey @necrolyte2! can you tell if the javaagent is causing more sessions than normal to be created, or if it is causing sessions to be retained (leaked) when they would normally be GC'd and closed on their own? |
I'm not really familiar with Cassandra or the datastax libraries. Any tips on how I would tell the difference? |
any chance you can create a repro that we can analyze? |
I can try. Some proprietary code that might also be the cause so I'll try to build a repo that enables cassandra without that code and see if it still happens. |
Based on #3358, I'm going to guess something with the codebase we have is causing the session issue. If you want to close this issue for now that is fine. It will likely be quite a bit of time before I am able to dig in and reproduce the issue in a public repo and for now we should be able to just turn off the Cassandra integration if needed. |
I believe this is the error that is causing the issue for us. The code base essentially has a wrapper around the CqlSession object that does promises instead of raw CqlSessions for you.
Here is the header of the
And the
|
I think I have gotten it down to the bare minimal and have it reproduced finally. The example app doesn't even start up, but does generate the same error at startup time REPRO: https://github.com/necrolyte2/ratpack-kotlin-otel/releases/tag/5.0.0 |
@necrolyte2 I tried to run your reproducer but couldn't get it to compile and run due to some missing dependencies. Is this still an issue for you? |
Describe the bug
Currently we are unable to enable the Cassandra integration for the OTEL agent due to the following error
This error will basically just keep being emitted(incrementing the # of sessions each time)
Setting
OTEL_INSTRUMENTATION_CASSANDRA_ENABLED=false
prevents the session issue, but may be causing a loss in context propegationSee this for more information on that propegation loss
Steps to reproduce
What did you expect to see?
cassandra integration should emit spans correctly and not open so many sessions
What did you see instead?
What version are you using?
Doesn't matter which version of the agent, the issue is the same
I have used the latest release(
v1.2.0
) as well as1.1.0
,1.0.1
and0.17.0
Environment
Compiler: AdoptOpenJDK 11.0.6
Additional context
The text was updated successfully, but these errors were encountered: