This commit is contained in:
kssenii 2023-08-11 13:35:48 +02:00
parent eef5bb0951
commit 26ed5f77ea
2 changed files with 3 additions and 6 deletions

View File

@ -600,7 +600,7 @@ TEST_F(FileCacheTest, get)
std::cerr << "Step 13\n"; std::cerr << "Step 13\n";
{ {
/// Test delated cleanup /// Test delayed cleanup
auto cache = FileCache(settings); auto cache = FileCache(settings);
cache.initialize(); cache.initialize();
@ -618,11 +618,8 @@ TEST_F(FileCacheTest, get)
cache.removeAllReleasable(); cache.removeAllReleasable();
ASSERT_EQ(cache.getUsedCacheSize(), 0); ASSERT_EQ(cache.getUsedCacheSize(), 0);
ASSERT_TRUE(fs::exists(key_path));
ASSERT_TRUE(!fs::exists(cache.getPathInLocalCache(key, 0, FileSegmentKind::Regular)));
ASSERT_TRUE(!fs::exists(key_path)); ASSERT_TRUE(!fs::exists(key_path));
ASSERT_TRUE(!fs::exists(fs::path(key_path).parent_path())); ASSERT_TRUE(!fs::exists(cache.getPathInLocalCache(key, 0, FileSegmentKind::Regular)));
} }
std::cerr << "Step 14\n"; std::cerr << "Step 14\n";

View File

@ -1 +1 @@
134217728 10000000 33554432 4194304 1 0 0 0 /var/lib/clickhouse/caches/s3_cache/ 100 2 0 134217728 10000000 33554432 4194304 1 0 0 0 /var/lib/clickhouse/caches/s3_cache/ 2 0