redis make test报错

在虚拟机上运行Redis的`make test`时遇到报错,提示Connect multiple slaves at the same time。根据GitHub上的说明,这可能是由于机器配置较低,如内存小、速度慢导致的超时问题。建议多次运行测试并检查机器配置是否满足测试要求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

!!! WARNING The following tests failed:

*** [err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
*** [err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
*** [err]: Test replication partial resync: no backlog in tests/integration/replication-psync.tcl
Expected condition '[s -1 sync_partial_err] > 0' to be true ([s -1 sync_partial_err] > 0)
*** [err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.
*** [err]: Detect write load to master in tests/integration/replication-psync.tcl
Can't detect write load from background clients.

*** [err]: Connect multiple slaves at the same time (issue #141), diskless=yes in tests/integration/replication.tcl



我是在虚拟机中跑的make test,在github上有一个说明

For timing issues, one test isn't very representative. Did you try running them 5-10 times? Is there anything unusual about your machine (very small memory, very slow, shared, overloaded, etc)? Some of the tests are based on timing, so if the machine can't deliver results in time then tests can't complete properly. (you can manually edit some of the tests to increase the timeout waiting)


大意是说有些测试点在配置比较低的机器上会因为超时而过不了,我在虚拟机上跑的,所以很有可能是这个问题。


评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值