Closed toujours33 closed 2 days ago
We should use filter here
We should use filter here
Yes, I will fix this issue, and will also consider adding some unit tests to cover this issue
We should use filter here
Yes, I will fix this issue, and will also consider adding some unit tests to cover this issue
Thanks, assigned to you, it's better to add integration test case for AlertServer
, I create a new issue to track https://github.com/apache/dolphinscheduler/issues/16823
Search before asking
What happened
After alert sent, the
AlertStatus
keepPartialSuccess
whenever the alert behavior was.long failureCount = alertSendStatuses.stream()
.map(alertSendStatus -> alertSendStatus.getSendStatus() == AlertStatus.EXECUTION_FAILURE)
.count();
long successCount = alertSendStatuses.stream()
.map(alertSendStatus -> alertSendStatus.getSendStatus() == AlertStatus.EXECUTION_SUCCESS)
.count();
failureCount or successCount are consistent for
map
function changeAlertSendStatus
stream toBoolean
stream.What you expected to happen
The
failureCount
andsuccessCount
must count correctlyHow to reproduce
All
and Alarm Group in 1st stept_ds_alert
, you can seealert_status
column all in value 3, which means PartialSuccess.Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct