This is an automated email from the ASF dual-hosted git repository.

zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 62d0b04af0 [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. (#17920)
62d0b04af0 is described below

commit 62d0b04af04b4920e6cc315477e8c602a80f0279
Author: maomao_zero <[email protected]>
AuthorDate: Mon Feb 2 10:34:38 2026 +0800

    [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. 
(#17920)
---
 .../org/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 90280e8020..9c407e7536 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
@@ -91,9 +91,9 @@ public final class HttpSender {
             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) {

Reply via email to