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

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

                Author: ASF GitHub Bot
            Created on: 15/May/20 05:04
            Start Date: 15/May/20 05:04
    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_r425567954



##########
File path: 
gobblin-utility/src/main/java/org/apache/hadoop/fs/FileSystemAdapter.java
##########
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.fs;
+
+import java.io.IOException;
+
+
+public class FileSystemAdapter {
+  public static void rename(FileSystem fs, Path src, Path dst, Options.Rename 
options) throws IOException {

Review comment:
       Yeah, but in FsDataWriter, when we try to use fc to do rename and fs to 
check the existence, underlying they are using different dfsClients, and we may 
face inconsistency issue. So we try to use the same dsfClient to do rename here.




----------------------------------------------------------------
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: 433549)
    Time Spent: 50m  (was: 40m)

> 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: 50m
>  Remaining Estimate: 0h
>




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

Reply via email to