-
Notifications
You must be signed in to change notification settings - Fork 596
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 problem which lead redisson plugin to throw unnecessary NullPointerException #700
Conversation
.stream() | ||
.map(data -> data.getCommand().getName()) | ||
.collect(Collectors.joining(";")); | ||
.stream() | ||
.map(data -> data.getCommand().getName()) | ||
.collect(Collectors.joining(";")); |
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.
These seem unnecessary.
AbstractSpan span = ContextManager.activeSpan(); | ||
span.log(t); | ||
public void handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t, MethodInvocationContext context) { | ||
if (ContextManager.isActive()) { |
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.
You should use flag here as well.
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.
ok, i fixed these two problems right now
...main/java/org/apache/skywalking/apm/plugin/redisson/v3/RedisConnectionMethodInterceptor.java
Outdated
Show resolved
Hide resolved
…rg/apache/skywalking/apm/plugin/redisson/v3/RedisConnectionMethodInterceptor.java
Change RedisConnectionInstrumentation and RedisConnectionMethodInterceptor to v2 interface, to solve the problem in this issue #693 .