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

ASF GitHub Bot logged work on GOBBLIN-1147:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/May/20 05:19
            Start Date: 15/May/20 05:19
    Worklog Time Spent: 10m 
      Work Description: ZihanLi58 commented on a change in pull request #2986:
URL: https://github.com/apache/incubator-gobblin/pull/2986#discussion_r425571520



##########
File path: 
gobblin-core/src/main/java/org/apache/gobblin/writer/FsDataWriter.java
##########
@@ -262,7 +262,7 @@ public void commit()
     LOG.info(String.format("Moving data from %s to %s", this.stagingFile, 
this.outputFile));
     // For the same reason as deleting the staging file if it already exists, 
overwrite
     // the output file if it already exists to prevent task retry from being 
blocked.
-    HadoopUtils.renamePath(this.fileContext, this.stagingFile, 
this.outputFile, true);
+    HadoopUtils.renamePath(this.fs, this.stagingFile, this.outputFile, true);

Review comment:
       This is intentional, as we don't know if there is any subclass use this 
member. So I leave it to make backward consistency




----------------------------------------------------------------
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: 433562)
    Time Spent: 1h 10m  (was: 1h)

> Use one dfsClient in FsDataWriter to to rename and exists check to avoid 
> inconsistency
> --------------------------------------------------------------------------------------
>
>                 Key: GOBBLIN-1147
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1147
>             Project: Apache Gobblin
>          Issue Type: Task
>            Reporter: Zihan Li
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>




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

Reply via email to