Increase query cancellation timeout in the router (#16656)

* Fix build

* Increase query cancellation timeout in router

* Increase cancellation timeout to 5 seconds
This commit is contained in:
Rishabh Singh 2024-08-07 20:29:35 +05:30 committed by GitHub
parent 76ad17fb4c
commit c6a7ab005f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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();