[ 
https://issues.apache.org/jira/browse/BEAM-6892?focusedWorklogId=444574&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-444574
 ]

ASF GitHub Bot logged work on BEAM-6892:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Jun/20 21:24
            Start Date: 11/Jun/20 21:24
    Worklog Time Spent: 10m 
      Work Description: udim commented on a change in pull request #11982:
URL: https://github.com/apache/beam/pull/11982#discussion_r439078406



##########
File path: sdks/python/apache_beam/io/gcp/gcsio.py
##########
@@ -110,6 +110,27 @@ def parse_gcs_path(gcs_path, object_optional=False):
   return match.group(1), match.group(2)
 
 
+def default_gcs_bucket_name(project, region):
+  from hashlib import md5
+  return 'dataflow-staging-%s-%s' % (
+      region, md5(project.encode('utf8')).hexdigest())
+
+
+def get_or_create_default_gcs_bucket(project, region, kms_key=None):

Review comment:
       I realize that there's a check for this in `_create_default_gcs_bucket`, 
but this method should fail if kms_key is set. Otherwise, it's saying that it's 
okay to have a default bucket with a KMS key.
   
   (The default bucket should not use a KMS key, and if a KMS key is specified 
Beam should not use a bucket with some other key (KMS or Google managed).)
   
   Refs:
   https://github.com/apache/beam/pull/8135#discussion_r274695249
   https://github.com/apache/beam/pull/8830/files




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 444574)
    Time Spent: 10h 50m  (was: 10h 40m)

> Use temp_location for BQ FILE_LOADS on DirectRunner, and autocreate it in GCS 
> if not specified by user.
> -------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-6892
>                 URL: https://issues.apache.org/jira/browse/BEAM-6892
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Valentyn Tymofieiev
>            Priority: P2
>          Time Spent: 10h 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to