FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix problem which lead redisson plugin to throw unnecessary NullPointerException by Ricehomesky · Pull Request #700 · apache/skywalking-java · GitHub

Fix problem which lead redisson plugin to throw unnecessary NullPointerException - #700

Merged
wu-sheng merged 5 commits into
apache:mainfrom
Ricehomesky:main
Jun 24, 2024
Merged

Fix problem which lead redisson plugin to throw unnecessary NullPointerException#700
wu-sheng merged 5 commits into
apache:mainfrom
Ricehomesky:main

Conversation

Copy link
Copy Markdown
Contributor

Change RedisConnectionInstrumentation and RedisConnectionMethodInterceptor to v2 interface, to solve the problem in this issue #693 .

Comment on lines +157 to +164
.stream()
.map(data -> data.getCommand().getName())
.collect(Collectors.joining(";"));
.stream()
.map(data -> data.getCommand().getName())
.collect(Collectors.joining(";"));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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()) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

You should use flag here as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

ok, i fixed these two problems right now

wu-sheng requested a review from CzyerChen June 23, 2024 16:14
wu-sheng added this to the 9.3.0 milestone Jun 23, 2024
wu-sheng added bug Something isn't working plugin labels Jun 23, 2024
…rg/apache/skywalking/apm/plugin/redisson/v3/RedisConnectionMethodInterceptor.java
wu-sheng changed the title fix problem which lead redisson plugin to throw unnecessary NullPointerException Fix problem which lead redisson plugin to throw unnecessary NullPointerException Jun 24, 2024
wu-sheng merged commit 01248a2 into apache:main Jun 24, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL