[CP] [FEAT MERGE]checkpoint diagnose virtual tablet

Co-authored-by: LiefB <954800091@qq.com>
This commit is contained in:
obdev
2024-03-14 10:15:21 +00:00
committed by ob-robot
parent 68a433ea37
commit 7a8c39abcb
79 changed files with 5609 additions and 1462 deletions

View File

@ -72,6 +72,9 @@ public:
// calculate clog checkpoint and update in ls_meta
int update_clog_checkpoint();
void add_server_event_history_for_update_clog_checkpoint(
const SCN &checkpoint_scn,
const char *service_type);
// the service will flush and advance checkpoint
// after flush, checkpoint_scn will be equal or greater than recycle_scn
@ -94,6 +97,7 @@ private:
private:
static const int64_t CLOG_GC_PERCENT = 60;
static const int64_t ADD_SERVER_HISTORY_INTERVAL = 10 * 60 * 1000 * 1000; // 10 min
ObLS *ls_;
logservice::ObILogHandler *loghandler_;
@ -112,6 +116,9 @@ private:
palf::LSN prev_clog_checkpoint_lsn_;
share::SCN prev_recycle_scn_;
int64_t update_clog_checkpoint_times_;
int64_t last_add_server_history_time_;
};