mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 20:22:12 +08:00
fix issue:
* [issue #662] Fix deadlocks caused by adding data using MySQL's REPLACE method
This commit is contained in:
@@ -52,12 +52,10 @@ public abstract class AbstractHealthCheckTask extends AbstractAsyncMetricsDispat
|
||||
resultList.addAll(this.checkAndGetResult(clusterPhyParam, healthConfigMap));
|
||||
}
|
||||
|
||||
for (HealthCheckResult checkResult: resultList) {
|
||||
try {
|
||||
healthCheckResultService.replace(checkResult);
|
||||
} catch (Exception e) {
|
||||
log.error("class=AbstractHealthCheckTask||method=processSubTask||clusterPhyId={}||checkResult={}||errMsg=exception!", clusterPhy.getId(), checkResult, e);
|
||||
}
|
||||
try {
|
||||
healthCheckResultService.batchReplace(clusterPhy.getId(), resultList);
|
||||
} catch (Exception e) {
|
||||
log.error("class=AbstractHealthCheckTask||method=processSubTask||clusterPhyId={}||errMsg=exception!", clusterPhy.getId(), e);
|
||||
}
|
||||
|
||||
// 删除10分钟之前的检查结果
|
||||
|
||||
Reference in New Issue
Block a user