Bugfix: incorrect data was read from the temporary file in direct reading scenario.

This commit is contained in:
ND501
2024-02-18 08:55:00 +00:00
committed by ob-robot
parent bff9af6491
commit 6ebb015322
5 changed files with 84 additions and 17 deletions

View File

@ -680,6 +680,7 @@ TEST_F(TestTmpFile, test_big_file)
write_time = ObTimeUtility::current_time() - write_time;
io_info.buf_ = read_buf;
// Flush all held block caches to ensure that subsequent read processes will go through I/O.
ObKVGlobalCache::get_instance().erase_cache(1, "tmp_block_cache");
io_info.size_ = write_size;
@ -730,7 +731,6 @@ TEST_F(TestTmpFile, test_big_file)
ObTmpFileManager::get_instance().remove(fd);
}
/*
TEST_F(TestTmpFile, test_big_file_disable_page_cache)
{
int ret = OB_SUCCESS;
@ -762,6 +762,7 @@ TEST_F(TestTmpFile, test_big_file_disable_page_cache)
write_time = ObTimeUtility::current_time() - write_time;
io_info.buf_ = read_buf;
// Flush all held block caches to ensure that subsequent read processes will go through I/O.
ObKVGlobalCache::get_instance().erase_cache(1, "tmp_block_cache");
io_info.size_ = write_size;
@ -811,7 +812,6 @@ TEST_F(TestTmpFile, test_big_file_disable_page_cache)
ObTmpFileManager::get_instance().remove(fd);
}
*/
TEST_F(TestTmpFile, test_multi_small_file_single_thread_read_write)
{