Rajesh Balamohan created HIVE-25075: ---------------------------------------
Summary: Hive::loadPartitionInternal establishes HMS connection for every partition for external tables Key: HIVE-25075 URL: https://issues.apache.org/jira/browse/HIVE-25075 Project: Hive Issue Type: Improvement Reporter: Rajesh Balamohan https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L2522 {code} boolean needRecycle = !tbl.isTemporary() && ReplChangeManager.shouldEnableCm(Hive.get().getDatabase(tbl.getDbName()), tbl.getTTable()); {code} Hive.get() breaks the current connection with HMS. Due to this, for external table partition loads, it establishes HMS connection for partition. -- This message was sent by Atlassian Jira (v8.3.4#803005)