[CP] [LOG] To merge the log4220 feature into the master branch.
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user