Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: Reopen chunk cache cpp ut (#33622) #33623

Open
wants to merge 7 commits into
base: 2.4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions internal/core/unittest/test_sealed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1372,9 +1372,6 @@ TEST(Sealed, GetVector) {
}

TEST(Sealed, GetVectorFromChunkCache) {
// skip test due to mem leak from AWS::InitSDK
return;

auto dim = 16;
auto topK = 5;
auto N = ROW_COUNT;
Expand All @@ -1384,10 +1381,8 @@ TEST(Sealed, GetVectorFromChunkCache) {
auto file_name = std::string(
"sealed_test_get_vector_from_chunk_cache/insert_log/1/101/1000000");

auto sc = milvus::storage::StorageConfig{};
milvus::storage::RemoteChunkManagerSingleton::GetInstance().Init(sc);
auto mcm = std::make_unique<milvus::storage::MinioChunkManager>(sc);
// mcm->CreateBucket(sc.bucket_name);
auto sc = milvus::storage::MmapConfig{};
milvus::storage::MmapManager::GetInstance().Init(sc);

auto schema = std::make_shared<Schema>();
auto fakevec_id = schema->AddDebugField(
Expand Down Expand Up @@ -1580,9 +1575,6 @@ TEST(Sealed, GetSparseVectorFromChunkCache) {
}

TEST(Sealed, WarmupChunkCache) {
// skip test due to mem leak from AWS::InitSDK
return;

auto dim = 16;
auto topK = 5;
auto N = ROW_COUNT;
Expand All @@ -1593,9 +1585,8 @@ TEST(Sealed, WarmupChunkCache) {
auto file_name = std::string(
"sealed_test_get_vector_from_chunk_cache/insert_log/1/101/1000000");

auto sc = milvus::storage::StorageConfig{};
milvus::storage::RemoteChunkManagerSingleton::GetInstance().Init(sc);
auto mcm = std::make_unique<milvus::storage::MinioChunkManager>(sc);
auto sc = milvus::storage::MmapConfig{};
milvus::storage::MmapManager::GetInstance().Init(sc);

auto schema = std::make_shared<Schema>();
auto fakevec_id = schema->AddDebugField(
Expand Down
Loading