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

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


The following commit(s) were added to refs/heads/master by this push:
     new ed05f3b480 [regression-test](fuzzy) fuzzy session variable batch_size 
(#16384)
ed05f3b480 is described below

commit ed05f3b4804788c6364a1030a20e61d747d8c07e
Author: TengJianPing <18241664+jackte...@users.noreply.github.com>
AuthorDate: Tue Feb 21 17:53:19 2023 +0800

    [regression-test](fuzzy) fuzzy session variable batch_size (#16384)
---
 fe/fe-common/src/main/java/org/apache/doris/common/Config.java |  8 ++++++++
 .../src/main/java/org/apache/doris/qe/SessionVariable.java     | 10 +++++++++-
 regression-test/pipeline/p0/conf/fe.conf                       |  1 +
 regression-test/pipeline/p1/conf/fe.conf                       |  1 +
 4 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java 
b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
index 1263c80593..a9925f2c52 100644
--- a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
+++ b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
@@ -1910,6 +1910,14 @@ public class Config extends ConfigBase {
     @ConfField(mutable = false, masterOnly = false)
     public static long external_cache_expire_time_minutes_after_access = 24 * 
60; // 1 day
 
+    /**
+     * Github workflow test type, for setting some session variables
+     * only for certain test type. E.g. only settting batch_size to small
+     * value for p0.
+     */
+    @ConfField(mutable = true, masterOnly = false)
+    public static String fuzzy_test_type = "";
+
     /**
      * Set session variables randomly to check more issues in github workflow
      */
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
index d5a6c7e0f7..dba1d1d65f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
@@ -406,7 +406,7 @@ public class SessionVariable implements Serializable, 
Writable {
     public int codegenLevel = 0;
 
     // 4096 minus 16 + 16 bytes padding that in padding pod array
-    @VariableMgr.VarAttr(name = BATCH_SIZE)
+    @VariableMgr.VarAttr(name = BATCH_SIZE, fuzzy = true)
     public int batchSize = 4064;
 
     @VariableMgr.VarAttr(name = DISABLE_STREAMING_PREAGGREGATIONS, fuzzy = 
true)
@@ -750,6 +750,14 @@ public class SessionVariable implements Serializable, 
Writable {
             // this.enableTwoPhaseReadOpt = true;
         }
 
+        if (Config.fuzzy_test_type.equals("p0")) {
+            if (Config.pull_request_id % 2 == 1) {
+                this.batchSize = 4064;
+            } else {
+                this.batchSize = 50;
+            }
+        }
+
         // set random 1, 10, 100, 1000, 10000
         this.topnOptLimitThreshold = 10 ^ (random.nextInt(5));
     }
diff --git a/regression-test/pipeline/p0/conf/fe.conf 
b/regression-test/pipeline/p0/conf/fe.conf
index d979744153..538b18bf4b 100644
--- a/regression-test/pipeline/p0/conf/fe.conf
+++ b/regression-test/pipeline/p0/conf/fe.conf
@@ -68,4 +68,5 @@ sys_log_verbose_modules = org.apache.doris
 enable_outfile_to_local = true
 tablet_create_timeout_second=20
 remote_fragment_exec_timeout_ms=60000
+fuzzy_test_type=p0
 use_fuzzy_session_variable=true
diff --git a/regression-test/pipeline/p1/conf/fe.conf 
b/regression-test/pipeline/p1/conf/fe.conf
index 8a6749c90d..6f737da817 100644
--- a/regression-test/pipeline/p1/conf/fe.conf
+++ b/regression-test/pipeline/p1/conf/fe.conf
@@ -69,4 +69,5 @@ priority_networks=172.19.0.0/24
 enable_outfile_to_local = true
 tablet_create_timeout_second=20
 remote_fragment_exec_timeout_ms=60000
+fuzzy_test_type=p1
 use_fuzzy_session_variable=true


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to