[CP] add serialization size check

This commit is contained in:
zhjc1124
2024-02-07 08:29:09 +00:00
committed by ob-robot
parent 9b6af8c5a1
commit 2569072042
23 changed files with 140 additions and 3 deletions

View File

@ -331,6 +331,7 @@ public:
}
int save_success_task(const common::ObTabletID &succ_id)
{ return succ_tablet_list_.push_back(succ_id); }
TO_STRING_KV(K(all_tablet_list_));
private:
int get_vt_svr_pair(uint64_t vt_id, const VirtualSvrPair *&vt_svr_pair);
int get_vt_tablet_loc(uint64_t table_id,

View File

@ -415,6 +415,7 @@ public:
ObPushdownFilterNode *&pd_storage_filter);
static int64_t get_serialize_pushdown_filter_size(ObPushdownFilterNode *pd_filter_node);
// NEED_SERIALIZE_AND_DESERIALIZE;
TO_STRING_KV(KP(filter_tree_));
private:
common::ObIAllocator &alloc_;
ObPushdownFilterNode *filter_tree_;

View File

@ -236,6 +236,7 @@ public:
}
return ret;
}
TO_STRING_KV(KP(ptr_value_));
private:
union {

View File

@ -1235,6 +1235,7 @@ struct ObSerCArray
ObSerCArray(T &data, U &cnt) : data_(data), cnt_(cnt) {}
T &data_;
U &cnt_;
TO_STRING_KV(K(cnt_));
};
template <typename T, typename U>

View File

@ -103,6 +103,7 @@ public:
common::ObFixedArray<ObExprResType, common::ObIAllocator> udf_attributes_types_;
// indicate the argument is const expr or not
common::ObFixedArray<bool, common::ObIAllocator> args_const_attr_;
TO_STRING_KV(K(udf_meta_), K(udf_attributes_), K(udf_attributes_types_), K(args_const_attr_));
};
OB_DEF_SERIALIZE(ObDllUdfInfo<UF>, template<typename UF>)

View File

@ -40,6 +40,7 @@ public:
ObIExprExtraInfo *&copied_info) const = 0;
public:
ObExprOperatorType type_;
TO_STRING_KV(K(type_));
};
} // end namespace sql

View File

@ -47,6 +47,8 @@ struct ObJoinFilterShareInfo
uint64_t filter_ptr_; //此指针将作为PX JOIN FILTER CREATE算子共享内存.
uint64_t shared_msgs_; //sqc-shared dh msgs
OB_UNIS_VERSION_V(1);
public:
TO_STRING_KV(KP(unfinished_count_ptr_), KP(ch_provider_ptr_), KP(release_ref_ptr_), KP(filter_ptr_), K(shared_msgs_));
};
struct ObJoinFilterRuntimeConfig

View File

@ -681,6 +681,7 @@ public:
ObPhyOperatorType get_type() const { return spec_.type_; }
const ObOpSpec &get_spec() const { return spec_; }
TO_STRING_KV(K(spec_));
protected:
ObExecContext &exec_ctx_;
const ObOpSpec &spec_;

View File

@ -44,6 +44,7 @@ public:
bool is_inited() const { return PHY_INVALID != op_type_; }
ObPhyOperatorType op_type_;
int64_t op_id_;
TO_STRING_KV(K(op_type_), K(op_id_));
};
public:
virtual int inner_open() override;

View File

@ -224,6 +224,9 @@ public:
DISALLOW_COPY_AND_ASSIGN(ObTaskExecutorCtx);
TO_STRING_KV(K(table_locations_), K(retry_times_), K(min_cluster_version_), K(expected_worker_cnt_),
K(admited_worker_cnt_), K(query_tenant_begin_schema_version_), K(query_sys_begin_schema_version_),
K(minimal_worker_cnt_));
};
class ObExecutorRpcImpl;

View File

@ -638,6 +638,7 @@ public:
uint32_t reserved_ : 29;
};
};
TO_STRING_KV(K(stmt_type_));
private:
share::ObFeedbackRerouteInfo *reroute_info_;
};

View File

@ -68,6 +68,7 @@ public:
int erase_refactored(const common::ObString &key, ObSessionVariable *sess_var = NULL);
int64_t size() const {return map_.size();}
NEED_SERIALIZE_AND_DESERIALIZE;
TO_STRING_KV(K(size()));
private:
int free_mem();

View File

@ -509,6 +509,8 @@ struct ObInnerContextMap {
ObInnerContextHashMap *context_map_;
common::ObIAllocator &alloc_;
OB_UNIS_VERSION(1);
public:
TO_STRING_KV(K(context_name_), K(context_map_->size()));
};
typedef common::hash::ObHashMap<common::ObString, ObInnerContextMap *,
common::hash::NoPthreadDefendMode,