Delete Creating bucket when create core/minioChunkManager (#20049)

Signed-off-by: xige-16 <xi.ge@zilliz.com>

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/19893/head
xige-16 2022-10-25 14:15:30 +08:00 committed by GitHub
parent 1f170ce1ba
commit 32ba4fafb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -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:'"