Browse Source

fix Fault tolerance warning mapper add alert type to insert (#9533)

3.0.0/version-upgrade
Tq 3 years ago committed by GitHub
parent
commit
1192fb8e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertMapper.xml

4
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/AlertMapper.xml

@ -20,9 +20,9 @@
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.AlertMapper"> <mapper namespace="org.apache.dolphinscheduler.dao.mapper.AlertMapper">
<insert id="insertAlertWhenServerCrash"> <insert id="insertAlertWhenServerCrash">
insert into t_ds_alert(sign, title, content, alert_status, warning_type, log, alertgroup_id, create_time, update_time) insert into t_ds_alert(sign, title, content, alert_status, warning_type, log, alertgroup_id, create_time, update_time, alert_type)
SELECT #{alert.sign}, #{alert.title}, #{alert.content}, #{alert.alertStatus.code}, #{alert.warningType.code}, SELECT #{alert.sign}, #{alert.title}, #{alert.content}, #{alert.alertStatus.code}, #{alert.warningType.code},
#{alert.log}, #{alert.alertGroupId}, #{alert.createTime}, #{alert.updateTime} #{alert.log}, #{alert.alertGroupId}, #{alert.createTime}, #{alert.updateTime}, #{alert.alertType.code}
from t_ds_alert from t_ds_alert
where create_time >= #{crashAlarmSuppressionStartTime} and sign = #{alert.sign} and alert_status = #{alert.alertStatus.code} where create_time >= #{crashAlarmSuppressionStartTime} and sign = #{alert.sign} and alert_status = #{alert.alertStatus.code}
having count(*) = 0 having count(*) = 0

Loading…
Cancel
Save