[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

@ -160,7 +160,7 @@ TEST_F(TestThrottlingUtils, test_calc_decay_factor)
ASSERT_EQ(OB_INVALID_ARGUMENT, ObThrottlingUtils::calc_decay_factor(available_size, duration_us, chunk_size, decay_factor));
duration_us = 1800 * 1000 * 1000L;
ASSERT_EQ(OB_INVALID_ARGUMENT, ObThrottlingUtils::calc_decay_factor(available_size, duration_us, chunk_size, decay_factor));
chunk_size = palf::MAX_LOG_BUFFER_SIZE;
chunk_size = 2 * 1024 * 1024 + 24 * 1024;
ASSERT_EQ(OB_SUCCESS, ObThrottlingUtils::calc_decay_factor(available_size, duration_us, chunk_size, decay_factor));
//0.10934
LOG_INFO("calc_decay_factor", K(chunk_size), K(duration_us), K(available_size), K(decay_factor));