Zsihovszki Krisztina created NIFI-11117:
-------------------------------------------

             Summary: Remove folder creation from PutGoogleDrive
                 Key: NIFI-11117
                 URL: https://issues.apache.org/jira/browse/NIFI-11117
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Zsihovszki Krisztina


PutGoogleDrive implementation offers a possibility to 
[create|https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-gcp-bundle/nifi-gcp-processors/src/main/java/org/apache/nifi/processors/gcp/drive/PutGoogleDrive.java#L149]
 the specified subfolder in case it does not exist yet.

Creation of non existing subfolder(s) may produce duplicate folders in Google 
Drive in case NiFi is running in a clustered environment.

Even if NiFi checks whether a folder exists or not, it may happen that two NiFi 
instances check folder existence, find that folder does not exist and attempt 
to create the folder at the same time. In such case two folders are created 
with the same name. (Google Drive lets us to create folders, files with the 
same name.)


Since no error is thrown by Google Drive, NiFi can not ensure that the Google 
Drive folders are created only once. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to