Skip to content
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 jedis 2.x plugin bug and add test for redis cluster #580

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

xu1009
Copy link
Contributor

@xu1009 xu1009 commented Jul 10, 2023

@xu1009 xu1009 requested a review from wu-sheng July 10, 2023 12:13
@Override
public void onConstruct(EnhancedInstance objInst, Object[] allArguments) throws Throwable {
HostAndPort hostAndPort = (HostAndPort) allArguments[0];
objInst.setSkyWalkingDynamicField(hostAndPort.getHost() + ":" + hostAndPort.getPort());
Copy link
Member

Choose a reason for hiding this comment

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

For a cluster, it has only one IP and port? Should it be ip1:port1,ip2:port...?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the JedisCluster constructor support one server and multi server,this is for one,multi is org.apache.skywalking.apm.plugin.jedis.v3.JedisClusterConstructorWithListHostAndPortArgInterceptor

@xu1009 xu1009 changed the title fix jedis 2.x plugin bug and add test for redist cluster fix jedis 2.x plugin bug and add test for redis cluster Jul 10, 2023
@wu-sheng wu-sheng added this to the 9.0.0 milestone Jul 10, 2023
@wu-sheng wu-sheng added the enhancement New feature or request label Jul 10, 2023
@xu1009 xu1009 merged commit d8dcc79 into apache:main Jul 10, 2023
177 checks passed
@wu-sheng
Copy link
Member

@xu1009 Please clean the commit logs when do squashing.

This one looks.
image

@xu1009
Copy link
Contributor Author

xu1009 commented Jul 10, 2023

ok,got it

yangyulely pushed a commit to yangyulely/skywalking-java that referenced this pull request May 25, 2024
* fix bug and add test for redist cluster

* add test to flow

---------

Co-authored-by: litexu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants