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

PSYNC模式、cluster-cluster数据同步过程中必现read tcp xxx->xxx: use of closed network connection问题 #774

Closed
HUIHUIABC opened this issue Mar 4, 2024 · 1 comment
Labels
type: question Further information is requested

Comments

@HUIHUIABC
Copy link

HUIHUIABC commented Mar 4, 2024

问题描述(Issue Description)

PSYNC模式、只进行rdb同步、cluster-cluster数据同步过程中必现read tcp xxx->xxx: use of closed network connection问题,单个节点的数据量在960M左右,每次同步至800~900M时,都会出现改问题导致过程异常中断。

查看断开连接的redis节点的日志,是Synchronization with replica [redis-shake从节点] succeeded后断开连接。如果把sync_aof打开,能够正常完成rdb的同步,进入到aof的阶段。

环境信息(Environment)

  • RedisShake 版本:V4
  • Redis 源端版本(Redis Source Version):5.0.7
  • Redis 目的端版本(Redis Destination Version):5.0.7
  • Redis 部署方式(standalone/cluster/sentinel):cluster
  • 是否在云服务商实例上部署(Deployed on Cloud Provider):否

源redis部分配置:

  • timeout 0
  • tcp-keepalive 60

日志信息(Logs)

2024-03-04 15:15:02 INF read_count=[5730524], read_ops=[57279.01], write_count=[5730523], write_ops=[57279.01], src-2, syncing rdb, size=[844 MiB/961 MiB]
2024-03-04 15:15:02 ERR read tcp 172.21.36.19:46977->172.21.36.22:8001: use of closed network connection
                        RedisShake/internal/reader/sync_standalone_reader.go:240 -> (*syncStandaloneReader).receiveAOF()
                        runtime/asm_amd64.s:1598 -> goexit()
2024-03-04 15:15:02 INF read_count=[5730524], read_ops=[57279.01], write_count=[5730523], write_ops=[57279.01], src-2, syncing rdb, size=[844 MiB/961 MiB]
2024-03-04 15:15:02 ERR read tcp 172.21.36.19:46977->172.21.36.22:8001: use of closed network connection
                        RedisShake/internal/reader/sync_standalone_reader.go:240 -> (*syncStandaloneReader).receiveAOF()
                        runtime/asm_amd64.s:1598 -> goexit()use of closed network connection

其他信息(Additional Information)

@HUIHUIABC HUIHUIABC added the type: question Further information is requested label Mar 4, 2024
@suxb201
Copy link
Member

suxb201 commented Mar 5, 2024

@suxb201 suxb201 closed this as completed Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants