-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[BUG]性能测试场景beanshell脚本调用lettuce-core-6.3.0.RELEASE.jar链接redis集群,在场景执行时,响应台报错。接口测试场景用例执行正常。 #30137
Labels
状态:待处理
已分配给相关处理人等待处理人处理并更新状态
Comments
通过报错能够看到少了部分jar reactor/core/scheduler/Schedulers |
刘老师您好,是这样的,接口测试同样运行这个场景,就是正常的,按说如果是jar包的问题,应该不论是接口调试还是性能测试都应该会报错。目前看效果接口调试正常,但是性能依旧报这个错误。还请您在排查一下,谢谢您
胡
在 2024-04-09 10:17:15,"刘瑞斌" ***@***.***> 写道:
通过报错能够看到少了部分jar reactor/core/scheduler/Schedulers
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
性能测试单独启动的jmeter镜像,里面的jar和接口测试有很大的不同 |
你好,因为长时间未反馈,暂关闭该issue,如果后续仍遇到请随时联系我们,感谢理解和支持。 |
抱歉刘工,才看到您的回复,我想请问一下,您说的差异能说明一下具体在哪里吗?下次我测试时可以注意到,谢谢您
在 2024-05-09 12:49:31,"刘瑞斌" ***@***.***> 写道:
性能测试单独启动的jmeter镜像,里面的jar和接口测试有很大的不同
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
联系方式
huxueyan_will@126.com
MeterSphere 版本
v2.10.8-lts-313def9d
使用外置数据库
是
问题描述
我们创建一个接口场景,大致的实现内容为:一个登录的接口,需要输入短信验证码,短信验证码存在redis里,我们就写了一个jar调用redis库,采用了beanshell的方式,然后获取验证码就登录接口登录。目前出现的问题是,场景用例在接口调试时正常执行,代码不会报错。但是性能测试时,代码总是报错。
![1](https://private-user-images.githubusercontent.com/16482933/320451402-efd6134a-4d8e-44d4-918d-84d686a94fa4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkyNzczMzMsIm5iZiI6MTcxOTI3NzAzMywicGF0aCI6Ii8xNjQ4MjkzMy8zMjA0NTE0MDItZWZkNjEzNGEtNGQ4ZS00NGQ0LTkxOGQtODRkNjg2YTk0ZmE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI1VDAwNTcxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTllY2U4NDljZDExNWE4NjI5ZDAxYTczNjljN2Q4NWRhMzM0ZDg2Y2U3ZjkwMTYxMDhhMDI5MjM0NDIzMTljNzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UTfsD3QTRH3RsU0tZz3zY03DWbCxeoCa82LNWpZHE0w)
高级配置中设置了路径,执行也是报错。
重现步骤
1.创建接口场景,链接redis获取某key值,在调用某登录接口
2.创建性能测试用例,执行查看控制台是否报错即可
代码为:import io.lettuce.core.ReadFrom;
import io.lettuce.core.RedisClient;
import io.lettuce.core.RedisURI;
import io.lettuce.core.api.sync.RedisCommands;
import io.lettuce.core.codec.StringCodec;
import io.lettuce.core.masterreplica.MasterReplica;
import io.lettuce.core.masterreplica.StatefulRedisMasterReplicaConnection;
import java.util.ArrayList;
import java.util.List;
//集群节点
List uris = new ArrayList();
uris.add(RedisURI.builder().withSentinel("IP", port,"mm").withSentinelMasterId("mymaster").withPassword("mm").withDatabase(2).build());
RedisClient client = RedisClient.create();
StatefulRedisMasterReplicaConnection connection = MasterReplica.connect(client, StringCodec.UTF8, uris);
//从节点读取数据
connection.setReadFrom(ReadFrom.REPLICA);
RedisCommands commands = connection.sync();
ss = vars.get("ss");
vars.put("mlcode",commands.get(ss));
log.info(commands.get(ss));
connection.close();
client.shutdown();
将指定的链接内容替换一下使用
期待的正确结果
不报错,正常执行,目前看可能没有获取到jar包
相关日志输出
附加信息
lettuce-core-6.3.0.RELEASE.jar这个包需要自行下载
The text was updated successfully, but these errors were encountered: