Merge pull request #17075 from ioito/hotfix/qx-ping-debug

fix(region): disable ping debug
This commit is contained in:
Zexi Li
2023-05-18 18:07:51 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ func (h *SHostHealthChecker) onHostUnhealthy(ctx context.Context, hostname strin
defer lockman.ReleaseRawObject(ctx, api.HOST_HEALTH_LOCK_PREFIX, hostname)
host := HostManager.FetchHostByHostname(hostname)
if host != nil {
pingRes, err := misc.Ping([]string{host.AccessIp}, 3, 10, true)
pingRes, err := misc.Ping([]string{host.AccessIp}, 3, 10, false)
if err != nil {
log.Errorf("failed ping dest host %s", hostname)
return
+1 -1
View File
@@ -151,7 +151,7 @@ func (m *SHostHealthManager) OnKeepaliveFailure() {
}
func (m *SHostHealthManager) networkAvailable() bool {
res, err := misc.Ping(m.masterNodesIps, 3, 10, true)
res, err := misc.Ping(m.masterNodesIps, 3, 10, false)
if err != nil {
log.Errorf("failed ping master nodes %s", res)
return true