From a7aa01b9933c3c7f6adfc19f855386e68f874929 Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 31 Aug 2023 13:40:49 +0000 Subject: [PATCH] increase the upper limit of memory_limit_percentage to 95 --- src/share/parameter/ob_parameter_seed.ipp | 4 ++-- src/storage/tx/ob_trans_part_ctx.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/share/parameter/ob_parameter_seed.ipp b/src/share/parameter/ob_parameter_seed.ipp index c4692cffe9..ea168615a7 100755 --- a/src/share/parameter/ob_parameter_seed.ipp +++ b/src/share/parameter/ob_parameter_seed.ipp @@ -200,8 +200,8 @@ DEF_BOOL(enable_syslog_recycle, OB_CLUSTER_PARAMETER, "False", "specifies whether log file recycling is turned on. " "Value: True:turned on; False: turned off", ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); -DEF_INT(memory_limit_percentage, OB_CLUSTER_PARAMETER, "80", "[10, 90]", - "the size of the memory reserved for internal use(for testing purpose). Range: [10, 90]", +DEF_INT(memory_limit_percentage, OB_CLUSTER_PARAMETER, "80", "[10, 95]", + "the size of the memory reserved for internal use(for testing purpose). Range: [10, 95]", ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE)); DEF_CAP(cache_wash_threshold, OB_CLUSTER_PARAMETER, "4GB", "[0B,]", "size of remaining memory at which cache eviction will be triggered. Range: [0,+∞)", diff --git a/src/storage/tx/ob_trans_part_ctx.cpp b/src/storage/tx/ob_trans_part_ctx.cpp index 79aa8c518e..9f88175b0a 100755 --- a/src/storage/tx/ob_trans_part_ctx.cpp +++ b/src/storage/tx/ob_trans_part_ctx.cpp @@ -5686,6 +5686,7 @@ int ObPartTransCtx::switch_to_follower_gracefully(ObIArray & if (pending_write_) { TRANS_LOG(INFO, "current tx is executing stmt", K(*this)); mt_ctx_.wait_pending_write(); + timeguard.click(); need_submit_log = true; } else if (!is_committing_()) { need_submit_log = true;