You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2014/10/28 07:40:15 UTC

svn commit: r1634788 - /hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java

Author: thejas
Date: Tue Oct 28 06:40:15 2014
New Revision: 1634788

URL: http://svn.apache.org/r1634788
Log:
HIVE-7623 : hive partition rename fails if filesystem cache is disabled (Navis via Thejas Nair)

Modified:
    hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java

Modified: hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java?rev=1634788&r1=1634787&r2=1634788&view=diff
==============================================================================
--- hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java (original)
+++ hive/branches/branch-0.14/metastore/src/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java Tue Oct 28 06:40:15 2014
@@ -354,7 +354,7 @@ public class HiveAlterHandler implements
           srcFs = wh.getFs(srcPath);
           destFs = wh.getFs(destPath);
           // check that src and dest are on the same file system
-          if (srcFs != destFs) {
+          if (!FileUtils.equalsFileSystem(srcFs, destFs)) {
             throw new InvalidOperationException("table new location " + destPath
               + " is on a different file system than the old location "
               + srcPath + ". This operation is not supported");