maheshk114 commented on a change in pull request #620: HIVE-21706: REPL Dump
with concurrent drop of external table fails with InvalidTableException.
URL: https://github.com/apache/hive/pull/620#discussion_r283171243
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplExternalTables.java
##########
@@ -133,7 +134,17 @@ void dataLocationDump(Table table)
PathBuilder.fullyQualifiedHDFSUri(table.getDataLocation(),
FileSystem.get(hiveConf));
write(lineFor(table.getTableName(), fullyQualifiedDataLocation,
hiveConf));
if (table.isPartitioned()) {
- List<Partition> partitions = Hive.get(hiveConf).getPartitions(table);
+ List<Partition> partitions;
+ try {
+ partitions = Hive.get(hiveConf).getPartitions(table);
+ } catch (HiveException e) {
+ if (e.getCause() instanceof NoSuchObjectException) {
+ // If table is dropped when dump in progress, just skip partitions
data location dump
Review comment:
can add a info log
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]