You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ek...@apache.org on 2015/01/26 19:22:17 UTC

svn commit: r1654856 - /hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java

Author: ekoifman
Date: Mon Jan 26 18:22:17 2015
New Revision: 1654856

URL: http://svn.apache.org/r1654856
Log:
HIVE-9361 - Intermittent NPE in SessionHiveMetaStoreClient.alterTempTable

Modified:
    hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java

Modified: hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java?rev=1654856&r1=1654855&r2=1654856&view=diff
==============================================================================
--- hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java (original)
+++ hive/branches/branch-1.0/ql/src/java/org/apache/hadoop/hive/ql/metadata/SessionHiveMetaStoreClient.java Mon Jan 26 18:22:17 2015
@@ -361,7 +361,7 @@ public class SessionHiveMetaStoreClient
 
     org.apache.hadoop.hive.metastore.api.Table newtCopy = deepCopyAndLowerCaseTable(newt);
     MetaStoreUtils.updateUnpartitionedTableStatsFast(newtCopy,
-        wh.getFileStatusesForSD(newtCopy.getSd()), false, true);
+        getWh().getFileStatusesForSD(newtCopy.getSd()), false, true);
     Table newTable = new Table(newtCopy);
     String newDbName = newTable.getDbName();
     String newTableName = newTable.getTableName();