提交 4891c45d 编写于 作者: S Shlomi Noach

More analysis states should be handled by at least detection hooks

上级 dcab70e4
......@@ -1196,14 +1196,18 @@ func executeCheckAndRecoverFunction(analysisEntry inst.ReplicationAnalysis, cand
case inst.DeadCoMasterAndSomeSlaves:
checkAndRecoverFunction = checkAndRecoverDeadCoMaster
case inst.DeadMasterAndSlaves:
checkAndRecoverFunction = checkAndRecoverGenericProblem
go emergentlyReadTopologyInstance(&analysisEntry.AnalyzedInstanceMasterKey, analysisEntry.Analysis)
case inst.UnreachableMaster:
checkAndRecoverFunction = checkAndRecoverGenericProblem
go emergentlyReadTopologyInstanceReplicas(&analysisEntry.AnalyzedInstanceKey, analysisEntry.Analysis)
case inst.AllMasterSlavesNotReplicating:
checkAndRecoverFunction = checkAndRecoverGenericProblem
go emergentlyReadTopologyInstance(&analysisEntry.AnalyzedInstanceKey, analysisEntry.Analysis)
case inst.FirstTierSlaveFailingToConnectToMaster:
go emergentlyReadTopologyInstance(&analysisEntry.AnalyzedInstanceMasterKey, analysisEntry.Analysis)
case inst.UnreachableMasterWithStaleSlaves:
checkAndRecoverFunction = checkAndRecoverGenericProblem
checkAndRecoverFunction = checkAndRecoverUnreachableMasterWithStaleSlaves
}
// Right now this is mostly causing noise with no clear action.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册