add parameter to control package state sync var max length & tracepoint placeholder

This commit is contained in:
hanr881 2024-12-05 10:14:52 +00:00 committed by ob-robot
parent 6932576659
commit 7964bc9a8f
4 changed files with 14 additions and 9 deletions

View File

@ -460,6 +460,7 @@ GLOBAL_ERRSIM_POINT_DEF(749, EN_COMPACTION_WITH_ZERO_DEFAULT_COLUMN_CHECKSUM, ""
// please add new trace point after 750
GLOBAL_ERRSIM_POINT_DEF(751, EN_SESSION_LEAK_COUNT_THRESHOLD, "used to control the threshold of report session leak ERROR");
GLOBAL_ERRSIM_POINT_DEF(752, EN_PL_MEMORY_ALLOCA_SWITCH, "used to control the strage of obplallocator memory alloc");
GLOBAL_ERRSIM_POINT_DEF(753, EN_PL_PACKAGE_ENCODE_SWITCH, "used to control the strage of package state encode");
GLOBAL_ERRSIM_POINT_DEF(760, EN_DISABLE_TABLET_MINOR_MERGE, "used to stop scheduling minor merge");
GLOBAL_ERRSIM_POINT_DEF(761, EN_FAST_RECLAIM_THREAD, "used to speed up reclaiming thread");
GLOBAL_ERRSIM_POINT_DEF(800, EN_END_PARTICIPANT, "");

View File

@ -52,9 +52,9 @@ int ObLLVMDIHelper::init(core::JitContext *jc)
LOG_WARN("failed to new jc", K(ret));
} else {
// Add the current debug info version into the module.
jc->get_module().addModuleFlag(Module::Warning, "Debug Info Version", DEBUG_METADATA_VERSION);
// Darwin only supports dwarf2.
if (Triple(sys::getProcessTriple()).isOSDarwin()) {
jc->get_module().addModuleFlag(Module::Warning, "Debug Info Version", DEBUG_METADATA_VERSION);
// Darwin only supports dwarf2.
if (Triple(sys::getProcessTriple()).isOSDarwin()) {
jc->get_module().addModuleFlag(llvm::Module::Warning, "Dwarf Version", 2);
}
}
@ -143,9 +143,9 @@ int ObLLVMDIHelper::create_function(const char *name,
} else {
jc_->sp_ = sp;
subprogram.set_v(sp);
}
return ret;
}
}
return ret;
}
int ObLLVMDIHelper::create_local_variable(const ObString &name, uint32_t arg_no, uint32_t line,
ObLLVMDIType &type, ObLLVMDILocalVariable &variable)
@ -239,9 +239,9 @@ int ObLLVMDIHelper::create_basic_type(ObObjType obj_type,
int ret = OB_SUCCESS;
DIType *type_ptr = NULL;
if (OB_ISNULL(jc_)) {
ret = OB_NOT_INIT;
LOG_WARN("jc is NULL", K(ret));
} else if (OB_ISNULL(type_ptr =
ret = OB_NOT_INIT;
LOG_WARN("jc is NULL", K(ret));
} else if (OB_ISNULL(type_ptr =
jc_->dbuilder_.createBasicType(basic_type_[obj_type].name_,
basic_type_[obj_type].size_bits_,
//basic_type_[obj_type].align_bits_,

View File

@ -2374,3 +2374,6 @@ DEF_BOOL(_enable_adaptive_auto_dop, OB_CLUSTER_PARAMETER, "False",
DEF_INT(query_memory_limit_percentage, OB_TENANT_PARAMETER, "50", "[0,100]",
"the percentage of tenant memory that can be used by a single SQL. The default value is 50. Range: [0,100]",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_INT(package_state_sync_max_size, OB_TENANT_PARAMETER, "8192", "[0, 16777216]",
"the max sync size of single package state that can sync package var value. If over it, package state will not sync package var value. Range: [0, 16777216] in integer",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));

View File

@ -205,6 +205,7 @@ ob_vector_memory_limit_percentage
open_cursors
optimizer_index_cost_adj
opt_tab_stat_cache_priority
package_state_sync_max_size
partition_balance_schedule_interval
plan_cache_evict_interval
plsql_code_type