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

同步进程经常自动退出 #859

Open
chenhuichao1997 opened this issue Sep 9, 2024 · 1 comment
Open

同步进程经常自动退出 #859

chenhuichao1997 opened this issue Sep 9, 2024 · 1 comment
Labels
type: question Further information is requested

Comments

@chenhuichao1997
Copy link

chenhuichao1997 commented Sep 9, 2024

问题描述(Issue Description)

redis-shake 同步进程开启后,进程会隔段时间自己报错退出

环境信息(Environment)

  • RedisShake 版本(RedisShake Version):redis-shake-v4.1.0
  • Redis 源端版本(Redis Source Version):redis_version:5.0.8
  • Redis 目的端版本(Redis Destination Version):redis_version:5.0.8
  • Redis 部署方式(standalone/cluster/sentinel):cluster
  • 是否在云服务商实例上部署(Deployed on Cloud Provider):虚拟机内自建服务

日志信息(Logs)

[root@- shake]# cat data/second-redis/shake.log |grep -i error
{"level":"error","time":"2024-09-02T10:16:40+08:00","message":"EOF\n\t\t\tRedisShake/internal/reader/sync_standalone_reader.go:246 -> (*syncStandaloneReader).receiveAOF()\n\t\t\truntime/asm_amd64.s:1598 -> goexit()"}
{"level":"error","time":"2024-09-03T09:19:48+08:00","message":"EOF\n\t\t\tRedisShake/internal/reader/sync_standalone_reader.go:246 -> (*syncStandaloneReader).receiveAOF()\n\t\t\truntime/asm_amd64.s:1598 -> goexit()"}
{"level":"error","time":"2024-09-04T08:33:09+08:00","message":"EOF\n\t\t\tRedisShake/internal/reader/sync_standalone_reader.go:246 -> (*syncStandaloneReader).receiveAOF()\n\t\t\truntime/asm_amd64.s:1598 -> goexit()"}

其他信息(Additional Information)

已排查进度:
根据报错位置判断 sync_standalone_reader.go:246,错误信息如下,一开始以为是切片长度不够导致,后来发现redis实例中并没有大key

        ...
	buf := make([]byte, 16*1024) // 16KB is enough for writing file
        ...
			n, err := rd.Read(buf)
			if err != nil {
				log.Panicf(err.Error())                    ##246行
			}
        ...

有遇到过的同学 麻烦帮忙解答下,万分感谢

@chenhuichao1997 chenhuichao1997 added the type: question Further information is requested label Sep 9, 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