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

sessid:16718 cmd:binlog_heartbeat 2 1617101832885, error:-ERR:6,msg:sessionId not match #90

Closed
zhaochunxue opened this issue Apr 1, 2021 · 6 comments

Comments

@zhaochunxue
Copy link

3.31号一个从节点报出来了好多上边的问题,不知道这些日志代表什么,只能大概的知道是主从同步有问题,还希望官方能给出解释和优化
image

@TendisDev
Copy link
Collaborator

“sessionId not match” 的意思是
在10秒内,slave没有收到master的binlog,会重新建立一个session进行拉取binlog。但如果此时原来的session恢复,但由于不允许多个session接收binlog,原来的session执行时候就会报错“sessionId not match”

出现这个错误一般以下原因:

  1. 主备时间短暂网络异常
  2. master异常,心跳binlog没有正常产生
  3. master hang住,并超过10s

这个需要重现并按现场分析其原因

@zhaochunxue
Copy link
Author

“sessionId not match” 的意思是
在10秒内,slave没有收到master的binlog,会重新建立一个session进行拉取binlog。但如果此时原来的session恢复,但由于不允许多个session接收binlog,原来的session执行时候就会报错“sessionId not match”

出现这个错误一般以下原因:

  1. 主备时间短暂网络异常
  2. master异常,心跳binlog没有正常产生
  3. master hang住,并超过10s

这个需要重现并按现场分析其原因

上边日志里边报出来的heartbeat报出来的异常不是你说的第二种吗? 如果不是的话,可能要先找到我问的第一个问题#89

@TendisDev
Copy link
Collaborator

“sessionId not match” 的意思是
在10秒内,slave没有收到master的binlog,会重新建立一个session进行拉取binlog。但如果此时原来的session恢复,但由于不允许多个session接收binlog,原来的session执行时候就会报错“sessionId not match”
出现这个错误一般以下原因:

  1. 主备时间短暂网络异常
  2. master异常,心跳binlog没有正常产生
  3. master hang住,并超过10s

这个需要重现并按现场分析其原因

上边日志里边报出来的heartbeat报出来的异常不是你说的第二种吗? 如果不是的话,可能要先找到我问的第一个问题#89

也不一定,也可能是心跳binlog产生了,但只是没发过来,或者堵在网络上

@TendisDev
Copy link
Collaborator

另外,你的版本是什么?后面请按照模版提交下issue,可以加快沟通效率

@zhaochunxue
Copy link
Author

另外,你的版本是什么?后面请按照模版提交下issue,可以加快沟通效率

是你们最新发布的版本,2.2.2
image

@zhaochunxue
Copy link
Author

另外,你的版本是什么?后面请按照模版提交下issue,可以加快沟通效率

对于我上边的问题,有没有什么调优的配置呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants