[CP] [LOG] To merge the log4220 feature into the master branch.

This commit is contained in:
obdev
2024-03-26 13:15:25 +00:00
committed by ob-robot
parent 6ed441335b
commit 2f5b5ef256
131 changed files with 6192 additions and 1068 deletions

View File

@ -414,7 +414,6 @@ TEST_F(TestObSimpleLogClusterBasicFunc, io_reducer_basic)
EXPECT_EQ(OB_SUCCESS, create_paxos_group(id, leader_idx, leader));
LogIOWorker *iow = leader.palf_handle_impl_->log_engine_.log_io_worker_;
iow->batch_io_task_mgr_.has_batched_size_ = 0;
iow->batch_io_task_mgr_.handle_count_ = 0;
std::vector<PalfHandleImplGuard*> palf_list;
EXPECT_EQ(OB_SUCCESS, get_cluster_palf_handle_guard(id, palf_list));
@ -426,10 +425,8 @@ TEST_F(TestObSimpleLogClusterBasicFunc, io_reducer_basic)
EXPECT_EQ(OB_SUCCESS, submit_log(leader, 10000, leader_idx, 120));
const LSN max_lsn = leader.palf_handle_impl_->get_max_lsn();
wait_lsn_until_flushed(max_lsn, leader);
const int64_t has_batched_size = iow->batch_io_task_mgr_.has_batched_size_;
const int64_t handle_count = iow->batch_io_task_mgr_.handle_count_;
const int64_t log_id = leader.palf_handle_impl_->sw_.get_max_log_id();
PALF_LOG_RET(ERROR, OB_ERR_UNEXPECTED, "batched_size", K(has_batched_size), K(log_id));
unblock_net(leader_idx, lag_follower_idx);
unblock_net(lag_follower_idx, leader_idx);
@ -442,13 +439,10 @@ TEST_F(TestObSimpleLogClusterBasicFunc, io_reducer_basic)
lag_follower_max_lsn = lag_follower.palf_handle_impl_->sw_.max_flushed_end_lsn_;
}
LogIOWorker *iow_follower = lag_follower.palf_handle_impl_->log_engine_.log_io_worker_;
const int64_t follower_has_batched_size = iow_follower->batch_io_task_mgr_.has_batched_size_;
const int64_t follower_handle_count = iow_follower->batch_io_task_mgr_.handle_count_;
EXPECT_EQ(OB_SUCCESS, revert_cluster_palf_handle_guard(palf_list));
int64_t cost_ts = ObTimeUtility::current_time() - start_ts;
PALF_LOG_RET(ERROR, OB_SUCCESS, "runlin trace performance", K(cost_ts), K(log_id), K(max_lsn), K(has_batched_size), K(handle_count),
K(follower_has_batched_size), K(follower_handle_count));
}
TEST_F(TestObSimpleLogClusterBasicFunc, create_palf_via_middle_lsn)