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

karan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new c6a7ab005f9 Increase query cancellation timeout in the router (#16656)
c6a7ab005f9 is described below

commit c6a7ab005f997ff8b1030b08b54c34c7767c7774
Author: Rishabh Singh <[email protected]>
AuthorDate: Wed Aug 7 20:29:35 2024 +0530

    Increase query cancellation timeout in the router (#16656)
    
    * Fix build
    
    * Increase query cancellation timeout in router
    
    * Increase cancellation timeout to 5 seconds
---
 .../main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/services/src/main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java
 
b/services/src/main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java
index 5134a8109b8..1fc1a6dfd06 100644
--- 
a/services/src/main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java
+++ 
b/services/src/main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java
@@ -104,7 +104,7 @@ public class AsyncQueryForwardingServlet extends 
AsyncProxyServlet implements Qu
   private static final String PROPERTY_SQL_ENABLE = "druid.router.sql.enable";
   private static final String PROPERTY_SQL_ENABLE_DEFAULT = "false";
 
-  private static final int CANCELLATION_TIMEOUT_MILLIS = 500;
+  private static final long CANCELLATION_TIMEOUT_MILLIS = 
TimeUnit.SECONDS.toMillis(5);
 
   private final AtomicLong successfulQueryCount = new AtomicLong();
   private final AtomicLong failedQueryCount = new AtomicLong();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to