don't print error log in flying of flashback

This commit is contained in:
HaHaJeff
2023-05-23 13:11:44 +00:00
committed by ob-robot
parent ae4d75699d
commit 873dd52cf1
4 changed files with 11 additions and 4 deletions

View File

@ -538,11 +538,11 @@ using namespace palflite;
TEST_F(TestObSimpleLogClusterArbService, test_multi_meta_block) TEST_F(TestObSimpleLogClusterArbService, test_multi_meta_block)
{ {
SET_CASE_LOG_FILE(TEST_NAME, "test_2f1a_defensive"); SET_CASE_LOG_FILE(TEST_NAME, "test_mutli_meta_block");
OB_LOGGER.set_log_level("DEBUG"); OB_LOGGER.set_log_level("INFO");
MockLocCB loc_cb; MockLocCB loc_cb;
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
PALF_LOG(INFO, "begin test_2f1a_defensive"); PALF_LOG(INFO, "begin test_multi_meta_block");
int64_t leader_idx = 0; int64_t leader_idx = 0;
int64_t arb_replica_idx = -1; int64_t arb_replica_idx = -1;
PalfHandleImplGuard leader; PalfHandleImplGuard leader;
@ -635,7 +635,7 @@ TEST_F(TestObSimpleLogClusterArbService, test_multi_meta_block)
} }
} }
delete_paxos_group(id); delete_paxos_group(id);
PALF_LOG(INFO, "end test_2f1a_defensive", K(id)); PALF_LOG(INFO, "end test_mutli_meta_block", K(id));
} }
// 1. 2F1A, the leader starts to degrade another F // 1. 2F1A, the leader starts to degrade another F

View File

@ -277,6 +277,7 @@ public:
// - OB_INVALID_ARGUMENT // - OB_INVALID_ARGUMENT
// - OB_ENTRY_NOT_EXIST: there is no log in disk // - OB_ENTRY_NOT_EXIST: there is no log in disk
// - OB_ERR_OUT_OF_LOWER_BOUND: scn is too old, log files may have been recycled // - OB_ERR_OUT_OF_LOWER_BOUND: scn is too old, log files may have been recycled
// - OB_NEED_RETRY: the block is being flashback, need retry.
// - others: bug // - others: bug
int locate_by_scn_coarsely(const share::SCN &scn, palf::LSN &result_lsn) override final; int locate_by_scn_coarsely(const share::SCN &scn, palf::LSN &result_lsn) override final;
@ -288,6 +289,7 @@ public:
// - OB_SUCCESS; locate_by_lsn_coarsely success // - OB_SUCCESS; locate_by_lsn_coarsely success
// - OB_INVALID_ARGUMENT // - OB_INVALID_ARGUMENT
// - OB_ERR_OUT_OF_LOWER_BOUND: lsn is too small, log files may have been recycled // - OB_ERR_OUT_OF_LOWER_BOUND: lsn is too small, log files may have been recycled
// - OB_NEED_RETRY: the block is being flashback, need retry.
// - others: bug // - others: bug
int locate_by_lsn_coarsely(const palf::LSN &lsn, share::SCN &result_scn) override final; int locate_by_lsn_coarsely(const palf::LSN &lsn, share::SCN &result_scn) override final;
// @brief, set the recycable lsn, palf will ensure that the data before recycable lsn readable. // @brief, set the recycable lsn, palf will ensure that the data before recycable lsn readable.

View File

@ -466,6 +466,7 @@ public:
// - OB_INVALID_ARGUMENT // - OB_INVALID_ARGUMENT
// - OB_ENTRY_NOT_EXIST: there is no log in disk // - OB_ENTRY_NOT_EXIST: there is no log in disk
// - OB_ERR_OUT_OF_LOWER_BOUND: scn is too old, log files may have been recycled // - OB_ERR_OUT_OF_LOWER_BOUND: scn is too old, log files may have been recycled
// - OB_NEED_RETRY: the block is being flashback, need retry.
// - others: bug // - others: bug
virtual int locate_by_scn_coarsely(const share::SCN &scn, LSN &result_lsn) = 0; virtual int locate_by_scn_coarsely(const share::SCN &scn, LSN &result_lsn) = 0;
@ -482,6 +483,7 @@ public:
// - OB_SUCCESS; locate_by_lsn_coarsely success // - OB_SUCCESS; locate_by_lsn_coarsely success
// - OB_INVALID_ARGUMENT // - OB_INVALID_ARGUMENT
// - OB_ERR_OUT_OF_LOWER_BOUND: lsn is too small, log files may have been recycled // - OB_ERR_OUT_OF_LOWER_BOUND: lsn is too small, log files may have been recycled
// - OB_NEED_RETRY: the block is being flashback, need retry.
// - others: bug // - others: bug
virtual int locate_by_lsn_coarsely(const LSN &lsn, share::SCN &result_scn) = 0; virtual int locate_by_lsn_coarsely(const LSN &lsn, share::SCN &result_scn) = 0;
virtual int get_begin_lsn(LSN &lsn) const = 0; virtual int get_begin_lsn(LSN &lsn) const = 0;

View File

@ -171,6 +171,9 @@ int ObCheckpointExecutor::update_clog_checkpoint()
} else if (OB_NOT_INIT == ret) { } else if (OB_NOT_INIT == ret) {
STORAGE_LOG(WARN, "palf has been disabled", K(ret), K(checkpoint_scn), K(ls_->get_ls_id())); STORAGE_LOG(WARN, "palf has been disabled", K(ret), K(checkpoint_scn), K(ls_->get_ls_id()));
ret = OB_SUCCESS; ret = OB_SUCCESS;
} else if (OB_NEED_RETRY == ret) {
STORAGE_LOG(WARN, "locate_by_scn_coarsely need retry", K(checkpoint_scn), K(ls_->get_ls_id()));
ret = OB_SUCCESS;
} else { } else {
STORAGE_LOG(ERROR, "locate lsn by logts failed", K(ret), K(ls_id), STORAGE_LOG(ERROR, "locate lsn by logts failed", K(ret), K(ls_id),
K(checkpoint_scn), K(checkpoint_scn_in_ls_meta)); K(checkpoint_scn), K(checkpoint_scn_in_ls_meta));