[FEAT MERGE] transfer without kill tx

This commit is contained in:
Handora
2024-02-07 14:20:47 +00:00
committed by ob-robot
parent 233bf43b61
commit 46b64790bc
125 changed files with 10809 additions and 1109 deletions

View File

@ -202,6 +202,8 @@ int ObLS::init(const share::ObLSID &ls_id,
LOG_WARN("failed to init member list service", K(ret));
} else if (OB_FAIL(block_tx_service_.init(this))) {
LOG_WARN("failed to init block tx service", K(ret));
} else if (OB_FAIL(ls_transfer_status_.init(this))) {
LOG_WARN("failed to init transfer status", K(ret));
} else {
REGISTER_TO_LOGSERVICE(logservice::TRANS_SERVICE_LOG_BASE_TYPE, &ls_tx_svr_);
REGISTER_TO_LOGSERVICE(logservice::STORAGE_SCHEMA_LOG_BASE_TYPE, &ls_tablet_svr_);
@ -938,6 +940,7 @@ void ObLS::destroy()
is_inited_ = false;
tenant_id_ = OB_INVALID_TENANT_ID;
startup_transfer_info_.reset();
ls_transfer_status_.reset();
}
int ObLS::offline_tx_(const int64_t start_ts)
@ -1011,6 +1014,8 @@ int ObLS::offline_(const int64_t start_ts)
LOG_WARN("tablet service offline failed", K(ret), K(ls_meta_));
} else if (OB_FAIL(tablet_empty_shell_handler_.offline())) {
LOG_WARN("tablet_empty_shell_handler failed", K(ret), K(ls_meta_));
} else if (OB_FAIL(ls_transfer_status_.offline())) {
LOG_WARN("ls transfer status offline failed", K(ret), K(ls_meta_));
} else if (OB_FAIL(running_state_.post_offline(ls_meta_.ls_id_))) {
LOG_WARN("ls post offline failed", KR(ret), K(ls_meta_));
} else {
@ -1156,6 +1161,8 @@ int ObLS::online_without_lock()
} else if (FALSE_IT(checkpoint_executor_.online())) {
} else if (FALSE_IT(tablet_gc_handler_.online())) {
} else if (FALSE_IT(tablet_empty_shell_handler_.online())) {
} else if (OB_FAIL(ls_transfer_status_.online())) {
LOG_WARN("ls transfer status online failed", K(ret), K(ls_meta_));
} else if (OB_FAIL(online_advance_epoch_())) {
} else if (OB_FAIL(running_state_.online(ls_meta_.ls_id_))) {
LOG_WARN("ls online failed", KR(ret), K(ls_meta_));