You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/08/22 14:30:15 UTC

[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #11601: [Bug] [Module Name] Bug title

github-actions[bot] commented on issue #11601:
URL: https://github.com/apache/dolphinscheduler/issues/11601#issuecomment-1222443843

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   `private void
       createFolder( String folderName ) {
           if (!s3Client.doesObjectExist(BUCKET_NAME, folderName + FOLDER_SEPARATOR)) {
               ObjectMetadata metadata = new ObjectMetadata();
               metadata.setContentLength(0);
               InputStream emptyContent = new ByteArrayInputStream(new byte[0]);
               PutObjectRequest putObjectRequest = new PutObjectRequest(BUCKET_NAME, folderName + FOLDER_SEPARATOR, emptyContent, metadata);
               s3Client.putObject(putObjectRequest);
           }
       }`
   I call this method when I create a tenant. But BUCKET_NAME is a constant defined by Constants
   ` public static final String BUCKET_NAME = "dolphinscheduler-test";
   `
   This will restrict me from having to create a BUCKET_NAME with dolphinscheduler-test in advance in order to use the features of s3.
   It is recommended that the official provide this variable configuration.
   
   ### What you expected to happen
   
   This will restrict me from having to create a BUCKET_NAME with dolphinscheduler-test in advance in order to use the features of s3.
   It is recommended that the official provide this variable configuration.
   
   ### How to reproduce
   
   Configure s3 parameters according to the official documentation
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.0.0
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)


-- 
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@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org