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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new d4e4893ab1d [test](fe) Add session variable enable_reserve_memory for 
testing (#48813)
d4e4893ab1d is described below

commit d4e4893ab1de83e898a0a640043b52ddd24869a7
Author: Jerry Hu <hushengg...@selectdb.com>
AuthorDate: Sat Mar 8 16:18:01 2025 +0800

    [test](fe) Add session variable enable_reserve_memory for testing (#48813)
---
 .../src/main/java/org/apache/doris/qe/SessionVariable.java     | 10 ++++++++++
 1 file changed, 10 insertions(+)

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 0344adb648d..ee44dd65eac 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
@@ -138,6 +138,8 @@ public class SessionVariable implements Serializable, 
Writable {
     public static final String ENABLE_SHORT_CIRCUIT_QUERY = 
"enable_short_circuit_point_query";
     public static final String ENABLE_EXCHANGE_NODE_PARALLEL_MERGE = 
"enable_exchange_node_parallel_merge";
 
+    public static final String ENABLE_RESERVE_MEMORY = "enable_reserve_memory";
+
     public static final String ENABLE_SERVER_SIDE_PREPARED_STATEMENT = 
"enable_server_side_prepared_statement";
     public static final String MAX_PREPARED_STMT_COUNT = 
"max_prepared_stmt_count";
     public static final String PREFER_JOIN_METHOD = "prefer_join_method";
@@ -2098,6 +2100,14 @@ public class SessionVariable implements Serializable, 
Writable {
     public boolean disableEmptyPartitionPrune = false;
     // CLOUD_VARIABLES_END
 
+    @VariableMgr.VarAttr(
+            name = ENABLE_RESERVE_MEMORY,
+            description = {"控制是否启用分配内存前先reverve memory的功能。默认为 true。",
+                    "Controls whether to enable reserve memory before 
allocating memory. "
+                            + "The default value is true."},
+            needForward = true, fuzzy = true)
+    public boolean enableReserveMemory = true;
+
     // for spill to disk
     @VariableMgr.VarAttr(name = MIN_REVOCABLE_MEM, fuzzy = true)
     public long minRevocableMem = 32 * 1024 * 1024;


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

Reply via email to