[SCN] fix farm failure

This commit is contained in:
obdev
2022-11-28 02:58:33 +00:00
committed by ob-robot
parent 87a9357186
commit 51de5b5911
594 changed files with 9722 additions and 7770 deletions

View File

@ -59,6 +59,22 @@ private:
int64_t bar_;
};
TEST(ObLogTransTaskPool, Init)
{
const int64_t part_trans_task_prealloc_count = 300000;
const int64_t page_size = 8 * 1024;
const int64_t prealloc_page_count = 20000;
ObConcurrentFIFOAllocator fifo;
int64_t G = 1024 * 1024 * 1024;
fifo.init(1 * G, 1 * G, OB_MALLOC_BIG_BLOCK_SIZE);
ObLogTransTaskPool<MockTransTask> pool;
int ret = pool.init(&fifo, part_trans_task_prealloc_count, page_size, true, prealloc_page_count);
EXPECT_EQ(OB_SUCCESS, ret);
}
TEST(ObLogTransTaskPool, Function1)
{
const int64_t task_cnt = 1024 * 32;