-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix1' into 'master' (merge request !374)
[bugfix] do cluster failover don't break client connections. #79 ### MR描述 <!--- 详细描述MR的细节 --> cluster failover的时候,主节点切了从,不应该断开客户端连接,应该返回moved错误。 ### 修改动机和上下文背景 <!--- 为什么需要此修改, 解决了什么问题 --> <!---如果解决了相关的#issue, 在此处进行关联(#issue, close #issue) --> ### 此MR如何进行测试 ? <!--- 请描述测试MR的细节 --> <!--- 包括测试的环境以及执行的测试用例 --> <!--- 说明 change 如何影响其他部分的代码 etc. --> ``` predixy下面挂tendis集群。 往predixy压测: redis-benchmark -h 127.0.0.1 -p 51000 -a tendis+test -t set -n 10000000 -c 50 -r 30000000 -d 256 -R -e 执行failover: redis-cli -p 54003 -a tendis+test cluster failover 此时redis-benchmark客户端不应该报错: Error from server: ERR server connection close ``` ### change 类型 <!---你的代码引入了何种类型的change, 在所有关联的复选框前选择"x" --> - [ ] Bug fix (修复了issue的非侵入式修改) - [ ] New feature (增加功能的非侵入式修改) - [ ] Breaking change (修复或者增加特性, 但是会造成现有行为的非预期行为) ### 清单 <!--- 查看下述选项,并进行"x"勾选 --> <!--- 如果你对所有都不确定, 请随时咨询我们 --> - [ ] 遵循项目的Code-Style - [ ] Change 需要文档的修改 - [ ] 我已经进行相关文档的修改 - [ ] 我的MR已经通过的相关流水线测试
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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