Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
wu-sheng merged 5 commits intoapache:mainapache/skywalking-java:mainfrom
Ricehomesky:mainRicehomesky/skywalking-java:mainCopy head branch name to clipboard
Jun 24, 2024
Merged

Fix problem which lead redisson plugin to throw unnecessary NullPointerException#700
wu-sheng merged 5 commits intoapache:mainapache/skywalking-java:mainfrom
Ricehomesky:mainRicehomesky/skywalking-java:mainCopy head branch name to clipboard

Conversation

@Ricehomesky
Copy link
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
Member

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()) {
Copy link
Member

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.

Copy link
Contributor Author

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

@wu-sheng wu-sheng requested a review from CzyerChen June 23, 2024 16:14
@wu-sheng wu-sheng added this to the 9.3.0 milestone Jun 23, 2024
@wu-sheng wu-sheng added bug Something isn't working plugin labels Jun 23, 2024
…rg/apache/skywalking/apm/plugin/redisson/v3/RedisConnectionMethodInterceptor.java
@wu-sheng 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 wu-sheng merged commit 01248a2 into apache:main Jun 24, 2024
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.