You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "paul-rogers (via GitHub)" <gi...@apache.org> on 2023/03/29 16:13:46 UTC
[GitHub] [druid] paul-rogers commented on a diff in pull request #13997: Using MinIO to run S3DeepStorage ITs
paul-rogers commented on code in PR #13997:
URL: https://github.com/apache/druid/pull/13997#discussion_r1152182819
##########
integration-tests-ex/cases/cluster/Common/dependencies.yaml:
##########
@@ -86,7 +86,37 @@ services:
MYSQL_USER: druid
MYSQL_PASSWORD: diurd
-## TODO: Not yet retested
+ minio:
+ container_name: minio
+ command: server /data --console-address ":9001"
+ networks:
+ druid-it-net:
+ ipv4_address: 172.172.172.5
+ image: minio/minio:latest
+ ports:
+ - '9000:9000'
+ - '9001:9001'
+ volumes:
+ - ${SHARED_DIR}/minio:/data
+ environment:
+ - MINIO_ROOT_USER=${AWS_ACCESS_KEY_ID}
+ - MINIO_ROOT_PASSWORD=${AWS_SECRET_ACCESS_KEY}
+
+ create_minio_buckets:
+ image: minio/mc
+ networks:
+ druid-it-net:
+ ipv4_address: 172.172.172.6
+ depends_on:
+ - minio
+ entrypoint: >
+ /bin/sh -c "
+ /usr/bin/mc alias set s3 http://minio:9000 ${AWS_ACCESS_KEY_ID} ${AWS_SECRET_ACCESS_KEY};
+ /usr/bin/mc mb s3/${DRUID_CLOUD_BUCKET};
+ /usr/bin/mc anonymous set public s3/${DRUID_CLOUD_BUCKET};
+ "
Review Comment:
To prevent race conditions, one of the Druid containers has to depend on this one. That can be done by adding a dependency on, say, the overlord. The tests check that OL is ready, and OL won't be ready (won't start running) until the above is done.
I'm hoping that dependencies indicate only run order and not "OK can't start if create_minio_buckets" isn't running. Please double-check.
##########
.github/workflows/reusable-revised-its.yml:
##########
@@ -42,6 +42,21 @@ on:
required: false
type: string
default: com.mysql.jdbc.Driver
+ DRUID_CLOUD_BUCKET:
+ required: false
+ type: string
+ DRUID_CLOUD_PATH:
+ required: false
+ type: string
+ AWS_REGION:
+ required: false
+ type: string
+ AWS_ACCESS_KEY_ID:
+ required: false
+ type: string
+ AWS_SECRET_ACCESS_KEY:
+ required: false
+ type: string
Review Comment:
Not covered here: if we no longer need env vars for S3, please remove the checks for them in 'it.sh`.
##########
.github/workflows/revised-its.yml:
##########
@@ -36,3 +36,18 @@ jobs:
script: ./it.sh github ${{ matrix.it }}
it: ${{ matrix.it }}
mysql_driver: com.mysql.jdbc.Driver
+
+ s3-deep-storage-minio:
+ uses: ./.github/workflows/reusable-revised-its.yml
+ with:
+ build_jdk: 8
+ runtime_jdk: 11
+ use_indexer: middleManager
+ script: ./it.sh github S3DeepStorage
+ it: S3DeepStorage
+ mysql_driver: com.mysql.jdbc.Driver
+ DRUID_CLOUD_BUCKET: druid-qa
+ DRUID_CLOUD_PATH: aws-${{ github.run_id }}-${{ github.run_attempt }}
+ AWS_REGION: us-east-1
+ AWS_ACCESS_KEY_ID: admin
+ AWS_SECRET_ACCESS_KEY: miniopassword
Review Comment:
Nit: missing newline.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org