BUGFIX: fix ls online failed after restart
This commit is contained in:
@ -1168,6 +1168,8 @@ int ObLS::online_without_lock()
|
|||||||
if (IS_NOT_INIT) {
|
if (IS_NOT_INIT) {
|
||||||
ret = OB_NOT_INIT;
|
ret = OB_NOT_INIT;
|
||||||
LOG_WARN("ls is not inited", K(ret));
|
LOG_WARN("ls is not inited", K(ret));
|
||||||
|
} else if (running_state_.is_running()) {
|
||||||
|
LOG_INFO("ls is running state, do nothing", K(ret));
|
||||||
} else if (OB_FAIL(ls_tablet_svr_.online())) {
|
} else if (OB_FAIL(ls_tablet_svr_.online())) {
|
||||||
LOG_WARN("tablet service online failed", K(ret), K(ls_meta_));
|
LOG_WARN("tablet service online failed", K(ret), K(ls_meta_));
|
||||||
} else if (OB_FAIL(lock_table_.online())) {
|
} else if (OB_FAIL(lock_table_.online())) {
|
||||||
|
|||||||
@ -385,7 +385,7 @@ public:
|
|||||||
int check_can_replay_clog(bool &can_replay);
|
int check_can_replay_clog(bool &can_replay);
|
||||||
int check_can_online(bool &can_online);
|
int check_can_online(bool &can_online);
|
||||||
|
|
||||||
TO_STRING_KV(K_(ls_meta), K_(switch_epoch), K_(log_handler), K_(restore_handler), K_(is_inited), K_(tablet_gc_handler), K_(startup_transfer_info));
|
TO_STRING_KV(K_(running_state), K_(ls_meta), K_(switch_epoch), K_(log_handler), K_(restore_handler), K_(is_inited), K_(tablet_gc_handler), K_(startup_transfer_info));
|
||||||
private:
|
private:
|
||||||
void update_state_seq_();
|
void update_state_seq_();
|
||||||
int ls_init_for_dup_table_();
|
int ls_init_for_dup_table_();
|
||||||
|
|||||||
Reference in New Issue
Block a user