-
Notifications
You must be signed in to change notification settings - Fork 149
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
Throw stackoverflowerror in com.nr.agent.instrumentation.cassandra.CQLParser.getOperationAndTableName #827
Comments
@TDtianzhenjiu thanks for this detailed feedback! We've added this issue to our How often does this exception occur for you? When it occurs, what's the impact - does it interrupt your application function? Have you identified a workaround that you can use in the meantime? |
Hello @kford-newrelic
|
…me method used by Cassandra 4.x to address #827
Hi @TDtianzhenjiu, The CQLParser getOperationAndTableName method used for the Cassandra 4 instrumentation is duplicated from previous Cassandra instrumentation. This Pull Request only adds exception handling for the Cassandra 4 instrumentation. |
* Capture and ignore exceptions in the CQLParser getOperationAndTableName method used by Cassandra 4.x to address #827
Description
exceptions:
o.s.w.u.NestedServletException: Handler dispatch failed; nested exception is java.lang.StackOverflowError
stack track:
It seems the regular expression with some issues
The original code is here: https://github.com/newrelic/newrelic-java-agent/blob/main/instrumentation/cassandra-datastax-4.0.0/src/main/java/com/nr/agent/instrumentation/cassandra/CQLParser.java#L69
The following codes always
java.lang.StackOverflowError
Your Environment
java11
spring-boot 2.4.4
spring-boot-starter-data-cassandra 2.4.4
The text was updated successfully, but these errors were encountered: