[FEAT MERGE] Add anti-fallback checks for the memory of 500 tenant

This commit is contained in:
obdev
2023-04-25 02:41:25 +00:00
committed by ob-robot
parent c317071f7e
commit fdcaa9a932
135 changed files with 936 additions and 660 deletions

View File

@ -447,11 +447,13 @@ int ObGetAllJobStatusOp::get_next_job_status(ObLoadDataStat *&job_status)
int ObGlobalLoadDataStatMap::init()
{
int ret = OB_SUCCESS;
ObMemAttr attr(OB_SERVER_TENANT_ID, ObModIds::OB_SQL_LOAD_DATA);
SET_USE_500(attr);
if (IS_INIT) {
ret = OB_INIT_TWICE;
} else if (OB_FAIL(map_.create(bucket_num,
ObModIds::OB_SQL_LOAD_DATA,
ObModIds::OB_SQL_LOAD_DATA))) {
attr,
attr))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("create hash table failed", K(ret));
} else {
@ -526,5 +528,3 @@ OB_SERIALIZE_MEMBER(ObLoadDataGID, id);
}
}