finetune observer start for easier debug

This commit is contained in:
zhjc1124
2024-02-10 04:25:01 +00:00
committed by ob-robot
parent 18caf7e0ab
commit bef3ebb26f
3 changed files with 68 additions and 28 deletions

View File

@ -584,8 +584,10 @@ int main(int argc, char *argv[])
ATOMIC_STORE(&palf::election::INIT_TS, palf::election::get_monotonic_ts());
if (OB_FAIL(observer.init(opts, log_cfg))) {
LOG_ERROR("observer init fail", K(ret));
raise(SIGKILL); // force stop when fail
} else if (OB_FAIL(observer.start())) {
LOG_ERROR("observer start fail", K(ret));
raise(SIGKILL); // force stop when fail
} else if (OB_FAIL(observer.wait())) {
LOG_ERROR("observer wait fail", K(ret));
}