[CP] [CP] Add diagnostic log for detection of schema mgr ref leak

This commit is contained in:
obdev
2022-08-25 18:15:35 +08:00
committed by wangzelin.wzl
parent 4e81072cd2
commit 50b76d0245
36 changed files with 134 additions and 30 deletions

View File

@ -2666,6 +2666,7 @@ ObShuffleTaskHandle::ObShuffleTaskHandle(
ObInsertValueGenerator& main_generator, ObPartIdCalculator& main_calculator, ObDataFragMgr& main_datafrag_mgr)
: exec_ctx(GCTX.session_mgr_),
data_buffer(NULL),
schema_guard(share::schema::ObSchemaMgrItem::MOD_SHUFFLE_TASK_HANDLE),
generator(main_generator),
calculator(main_calculator),
datafrag_mgr(main_datafrag_mgr)

View File

@ -924,6 +924,7 @@ public:
ObLoadDataImpl()
: // arguments
schema_guard_(share::schema::ObSchemaMgrItem::MOD_LOAD_DATA_IMPL),
part_level_(share::schema::PARTITION_LEVEL_ZERO),
part_num_(0),
initial_step_(FIND_LINE_START),

View File

@ -67,7 +67,6 @@ private:
sql::ObPhysicalPlan phy_plan_;
common::ObArenaAllocator des_allocator_;
// observer::ObVirtualTableIteratorFactory vt_iter_factory_;
// share::schema::ObSchemaGetterGuard schema_guard_;
};
class ObInitFastSqcP : public obrpc::ObRpcProcessor<obrpc::ObPxRpcProxy::ObRpc<obrpc::OB_PX_FAST_INIT_SQC>> {

View File

@ -46,7 +46,7 @@ ObPxTaskProcess::ObPxTaskProcess(const observer::ObGlobalContext& gctx, ObPxRpcI
: gctx_(gctx),
arg_(arg),
sql_ctx_(),
schema_guard_(),
schema_guard_(share::schema::ObSchemaMgrItem::MOD_PX_TASK_PROCESSS),
vt_iter_factory_(*gctx.vt_iter_creator_),
enqueue_timestamp_(0),
process_timestamp_(0),

View File

@ -112,6 +112,7 @@ public:
output_row_count_(-1),
iter_end_(false),
partition_id_(OB_INVALID_INDEX),
schema_guard_(share::schema::ObSchemaMgrItem::MOD_TABLE_SCAN),
iterated_rows_(0),
is_partition_list_empty_(false),
got_feedback_(false),

View File

@ -443,6 +443,7 @@ ObTableScanOp::ObTableScanOp(ObExecContext& exec_ctx, const ObOpSpec& spec, ObOp
output_row_count_(-1),
iter_end_(false),
partition_id_(OB_INVALID_INDEX),
schema_guard_(share::schema::ObSchemaMgrItem::MOD_TABLE_SCAN),
iterated_rows_(0),
is_partition_list_empty_(false),
got_feedback_(false),