You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by pv...@apache.org on 2020/06/05 10:03:43 UTC

[hive] branch master updated: HIVE-23608: Change an FS#exists call to FS#isFile call in AcidUtils (Karen Coppage via Peter Vary)

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

pvary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d8a319  HIVE-23608: Change an FS#exists call to FS#isFile call in AcidUtils (Karen Coppage via Peter Vary)
8d8a319 is described below

commit 8d8a3195d431cbfe3cedeaa1b40ad93475dcf7c6
Author: Karen Coppage <ka...@cloudera.com>
AuthorDate: Fri Jun 5 12:03:15 2020 +0200

    HIVE-23608: Change an FS#exists call to FS#isFile call in AcidUtils (Karen Coppage via Peter Vary)
---
 ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
index f23e0a5..635ed31 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
@@ -2645,7 +2645,7 @@ public class AcidUtils {
      */
     public static void writeVersionFile(Path deltaOrBaseDir, FileSystem fs)  throws IOException {
       Path formatFile = getVersionFilePath(deltaOrBaseDir);
-      if(!fs.exists(formatFile)) {
+      if(!fs.isFile(formatFile)) {
         try (FSDataOutputStream strm = fs.create(formatFile, false)) {
           strm.write(UTF8.encode(String.valueOf(ORC_ACID_VERSION)).array());
         } catch (IOException ioe) {