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

nju_yaho pushed a commit to tag ebay-3.1.0-release-20200701
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit bad7f0607f5ff436fbc6eb2b043306aa993ad59d
Author: Zhong, Yanghong <nju_y...@apache.org>
AuthorDate: Wed May 27 15:17:33 2020 +0800

    KYLIN-4530 Reduce duplication SQL log
---
 .../src/main/java/org/apache/kylin/rest/service/QueryService.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java 
b/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
index e731852..6c38f65 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/service/QueryService.java
@@ -631,6 +631,7 @@ public class QueryService extends BasicService {
         }
 
         // Check whether duplicate query exists
+        int lazyCount = 0;
         while (response.isRunning()) {
             // Wait at most one minute
             if (System.currentTimeMillis() - response.getLazyQueryStartTime() 
>= getConfig()
@@ -638,7 +639,9 @@ public class QueryService extends BasicService {
                 cache.evict(sqlRequest.getCacheKey());
                 return null;
             }
-            logger.info("Duplicated SQL request is running, waiting...");
+            if (lazyCount++ % 100 == 0) {
+                logger.info("Duplicated SQL request is running, waiting...");
+            }
             try {
                 Thread.sleep(100L);
             } catch (InterruptedException e) {

Reply via email to