From 32ba4fafb8c9531ad7e54f2b6c09baaff2f494a3 Mon Sep 17 00:00:00 2001 From: xige-16 Date: Tue, 25 Oct 2022 14:15:30 +0800 Subject: [PATCH] Delete Creating bucket when create core/minioChunkManager (#20049) Signed-off-by: xige-16 Signed-off-by: xige-16 --- internal/core/src/storage/MinioChunkManager.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/core/src/storage/MinioChunkManager.cpp b/internal/core/src/storage/MinioChunkManager.cpp index e2788e86c0..c088216d5b 100644 --- a/internal/core/src/storage/MinioChunkManager.cpp +++ b/internal/core/src/storage/MinioChunkManager.cpp @@ -100,9 +100,12 @@ MinioChunkManager::MinioChunkManager(const StorageConfig& storage_config) config, Aws::Client::AWSAuthV4Signer::PayloadSigningPolicy::Never, false); } - if (!BucketExists(storage_config.bucket_name)) { - CreateBucket(storage_config.bucket_name); - } + // TODO ::BucketExist and CreateBucket func not work, should be fixed + // index node has already tried to create bucket when receive index task if bucket not exist + // query node has already tried to create bucket during init stage if bucket not exist + // if (!BucketExists(storage_config.bucket_name)) { + // CreateBucket(storage_config.bucket_name); + // } LOG_SEGCORE_INFO_C << "init MinioChunkManager with parameter[endpoint: '" << storage_config.address << "', access_key:'" << storage_config.access_key_id << "', access_value:'"