Skip to content

Commit 58e836b

Browse files
guojn1githubgxll
authored andcommitted
[fix][dingo-executor] Delete regions based on GC lifetime
1 parent eb79d50 commit 58e836b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dingo-common/src/main/java/io/dingodb/common/mysql/scope/ScopeVariables.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static boolean getJob2Table() {
131131

132132
public static boolean getNeedGc() {
133133
try {
134-
String jobNeedGc = executorProp.getOrDefault("job_need_gc", "off").toString();
134+
String jobNeedGc = executorProp.getOrDefault("job_need_gc", "on").toString();
135135
return jobNeedGc.equals("on");
136136
} catch (Exception e) {
137137
return false;

dingo-executor/src/main/java/io/dingodb/server/executor/prepare/PrepareMeta.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public static List<Object[]> getGlobalVariablesList() {
279279
values.add(new Object[]{"txn_retry", "off"});
280280
values.add(new Object[]{"txn_retry_cnt", "0"});
281281
values.add(new Object[]{"enable_safe_point_update", "1"});
282-
values.add(new Object[]{"txn_history_duration", String.valueOf(60 * 10)});
282+
values.add(new Object[]{"txn_history_duration", String.valueOf(60 * 3)});
283283
values.add(new Object[]{"slow_query_enable", "on"});
284284
values.add(new Object[]{"slow_query_threshold", "5000"});
285285
values.add(new Object[]{"sql_profile_enable", "on"});

0 commit comments

Comments
 (0)