From 4a61a51fb67f161a6861e5167b5f84e9ab535dcf Mon Sep 17 00:00:00 2001 From: maomaolong Date: Fri, 30 Jan 2026 14:03:01 +0800 Subject: [PATCH] [Fix-17915][alert] Fix the issue of setting timeout exceptions in the HTTP alert plugin, where the unit in the code is not consistent with the page. --- .../apache/dolphinscheduler/plugin/alert/http/HttpSender.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpSender.java b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpSender.java index 42f1474de47c..dfa724d1f134 100644 --- a/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpSender.java +++ b/dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-http/src/main/java/org/apache/dolphinscheduler/plugin/alert/http/HttpSender.java @@ -88,9 +88,9 @@ private void paramsValidator(Map paramsMap) { throw new IllegalArgumentException("contentType is not a valid value"); } - timeout = StringUtils.isNotBlank(paramsMap.get(HttpAlertConstants.NAME_TIMEOUT)) + timeout = (StringUtils.isNotBlank(paramsMap.get(HttpAlertConstants.NAME_TIMEOUT)) ? Integer.parseInt(paramsMap.get(HttpAlertConstants.NAME_TIMEOUT)) - : HttpAlertConstants.DEFAULT_TIMEOUT * 1000; + : HttpAlertConstants.DEFAULT_TIMEOUT) * 1000; } public AlertResult send(String msg) {