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

checkMaster失败导致主节点不恢复问题 #387

Closed
htner opened this issue Oct 19, 2017 · 1 comment
Closed

checkMaster失败导致主节点不恢复问题 #387

htner opened this issue Oct 19, 2017 · 1 comment
Labels

Comments

@htner
Copy link

htner commented Oct 19, 2017

node.go checkMaster() 函数

  1. 96行 判断如果n.master为空将不再检查,直接返回
  2. 106行 n.UpMaster(db.addr)可能会将n.master设置为空

那是否连接主节点的网络抖动后,可能会出现再也不能恢复的情况?

补充相关日志:
2017/10/18 20:42:08 - ERROR - node.go:[102] - [Node] "checkMaster" "Ping" "db.Addr=starmaker-live.cczpbf5hc2kb.us-west-2.rds.amazonaws.com:3306|error=connection was bad" conn_id=0
2017/10/18 20:44:32 - ERROR - node.go:[254] - [Node] "UpMaster" "dial tcp 34.210.172.35:3306: getsockopt: connection timed out" "" conn_id=0
2017/10/18 20:44:48 - ERROR - node.go:[97] - [Node] "checkMaster" "Master is no alive" "" conn_id=0

flike pushed a commit that referenced this issue Oct 21, 2017
@flike flike added the fixed label Oct 21, 2017
@flike flike closed this as completed Oct 21, 2017
@wfxiang08
Copy link

@flike 我刚刚也发了一个pull request, 结果发现你已经改了。不过咱两的侧重点有点点不一样,你看看
#388

不过你修改的比较简洁。

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

No branches or pull requests

3 participants