From ad7d3dde0090f329f0814e07f3e12fefe2b585ba Mon Sep 17 00:00:00 2001 From: Puppet <56722758+PuppetA17@users.noreply.github.com> Date: Thu, 20 Apr 2023 16:15:28 +0800 Subject: [PATCH] [bitnami/minio] Fix the image startup problem (#30808) Fix the image startup problem Image startup scans all the first-level directories of bucket through mc ls to determine whether bucket exists or skips. In a normal scenario, this is not a problem, but when there are a large number of files in the first-level directory of bucket, it will become a disaster. In my scene, there are millions or even tens of millions of files in a first-level directory under bucket. When the image is restarted, it will take up a lot of disk io. If the underlying use is file storage such as nas, this will be more intolerable Signed-off-by: Puppet <56722758+PuppetA17@users.noreply.github.com> --- .../2023/debian-11/rootfs/opt/bitnami/scripts/libminioclient.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/minio/2023/debian-11/rootfs/opt/bitnami/scripts/libminioclient.sh b/bitnami/minio/2023/debian-11/rootfs/opt/bitnami/scripts/libminioclient.sh index e6616ac610b9..6eb107ab1037 100644 --- a/bitnami/minio/2023/debian-11/rootfs/opt/bitnami/scripts/libminioclient.sh +++ b/bitnami/minio/2023/debian-11/rootfs/opt/bitnami/scripts/libminioclient.sh @@ -14,7 +14,7 @@ # Boolean minio_client_bucket_exists() { local -r bucket_name="${1:?bucket required}" - if minio_client_execute ls "${bucket_name}" >/dev/null 2>&1; then + if minio_client_execute stat "${bucket_name}" >/dev/null 2>&1; then true else false