This is an automated email from the ASF dual-hosted git repository.

wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 8883fbc9af AMBARI-25288: Copy File Operation in Filesview is 
overwriting the file (#3473)
8883fbc9af is described below

commit 8883fbc9affa037626ed8f0f8ba2313d403c6c41
Author: Zhiguo Wu <wuzhi...@apache.org>
AuthorDate: Fri Nov 11 01:53:18 2022 +0800

    AMBARI-25288: Copy File Operation in Filesview is overwriting the file 
(#3473)
---
 .../utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java
 
b/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java
index 1f8b5845a1..f1fe884e2d 100644
--- 
a/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java
+++ 
b/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java
@@ -463,7 +463,7 @@ public class HdfsApi {
   public void copy(final String src, final String dest) throws IOException, 
InterruptedException, HdfsApiException {
     boolean result = execute(new PrivilegedExceptionAction<Boolean>() {
       public Boolean run() throws Exception {
-        return FileUtil.copy(fs, new Path(src), fs, new Path(dest), false, 
conf);
+        return FileUtil.copy(fs, new Path(src), fs, new Path(dest), false, 
false, conf);
       }
     });
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org
For additional commands, e-mail: commits-h...@ambari.apache.org

Reply via email to