ZihanLi58 opened a new pull request, #3624:
URL: https://github.com/apache/gobblin/pull/3624

   Dear Gobblin maintainers,
   
   Please accept this PR. I understand that it will not be reviewed until I 
have checked off all the steps below!
   
   
   ### JIRA
   - [ ] My PR addresses the following [Gobblin 
JIRA](https://issues.apache.org/jira/browse/GOBBLIN/) issues and references 
them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"
       - https://issues.apache.org/jira/browse/GOBBLIN-1765
   
   
   ### Description
   - [ ] Here are some details about my PR, including screenshots (if 
applicable):
   We want to add support so that when user specify a dir in manifest file, we 
will blindly sync the metadata for that dir regardless the modification time.
   This change include:
   1. add config to support whether we want preserve mod time for dir and by 
default it's true
   2. Change the FileAwareInpuSTreamWriter so that during commit, when we see 
the output path already exist and CopyableFile is one directory, we won't 
rename/overwrite the target dir incase we overwrite the file that already been 
copied in the same job.   We still want to add this dir as copyableFile because 
only in this case, we can make sure publisher will be executed even there is no 
other file to copy and handle the metadata sync for dirs. 
   3. Change the shouldCopy method in manifest to 
     a. Always copy dir
     b. Always copy file if source has newer version
     c. Copy file is source and dst have same version but target permission is 
different on dst. (this is because chown won't change the modification time)
     d. never copy file if dst has newer version
   
   ### Tests
   - [ ] My PR adds the following unit tests __OR__ does not need testing for 
this extremely good reason:
   Existing unit test all pass. Also test the real manifest copy job and verify 
that we can sync metadata for dir without affecting the files already existed 
in the dir
   
   ### Commits
   - [ ] My commits all reference JIRA issues in their subject lines, and I 
have squashed multiple commits if they address the same issue. In addition, my 
commits follow the guidelines from "[How to write a good git commit 
message](http://chris.beams.io/posts/git-commit/)":
       1. Subject is separated from body by a blank line
       4. Subject is limited to 50 characters
       5. Subject does not end with a period
       6. Subject uses the imperative mood ("add", not "adding")
       7. Body wraps at 72 characters
       8. Body explains "what" and "why", not "how"
   
   


-- 
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: [email protected]

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

Reply via email to