You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by "Hung Tran (Jira)" <ji...@apache.org> on 2020/08/06 20:14:00 UTC

[jira] [Created] (GOBBLIN-1227) Treat AccessDeniedException in RenameRecursively as an existence indicator

Hung Tran created GOBBLIN-1227:
----------------------------------

             Summary: Treat AccessDeniedException in RenameRecursively as an existence indicator
                 Key: GOBBLIN-1227
                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1227
             Project: Apache Gobblin
          Issue Type: Improvement
            Reporter: Hung Tran


The CopyDataPublisher uses 

HadoopUtils.renameRecursively() to publish the staged data to the root path "/". HadoopUtils.renameRecursively() will check for the existence of the target directory and its parent directory and call mkdirs to create missing directories if the parent directory does not exist.

This check may return an AccessDeniedException if permissions are limited on the parent directory.

For directories, treat the AccessDeniedException as an indicator of existence to allow the recursive renaming to proceed in this scenario.

 

 



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