Skip to content

Commit

Permalink
[test](fe) Add session variable enable_reserve_memory for testing (#4…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhhsg authored Mar 8, 2025
1 parent 0f489dd commit d4e4893
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -2098,6 +2100,14 @@ public void setDetailShapePlanNodes(String detailShapePlanNodes) {
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;
Expand Down

0 comments on commit d4e4893

Please sign in to comment.