hive-gitbox mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [hive] ayushtkn commented on a change in pull request #2043: HIVE-24852. Add support for Snapshots during external table replication.
Date Tue, 04 May 2021 19:07:12 GMT

ayushtkn commented on a change in pull request #2043:

File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/util/
@@ -342,7 +343,12 @@ public static PathFilter getBootstrapDirectoryFilter(final FileSystem
fs) {
   public static int handleException(boolean isReplication, Throwable e, String nonRecoverablePath,
                                     ReplicationMetricCollector metricCollector, String stageName,
HiveConf conf){
-    int errorCode = ErrorMsg.getErrorMsg(e.getMessage()).getErrorCode();
+    int errorCode;
+    if (isReplication && e instanceof SnapshotException) {
+      errorCode = ErrorMsg.getErrorMsg("SNAPSHOT_ERROR").getErrorCode();

Review comment:
       Actually it should be like that but, in the ErrorMsg, it gets the error code based
on the Exception message, but in case of Snapshot Exception, There can be a bunch of messages,
Different for Nested Snapshot, Parent Snapshottable, No Snapshot Exists and couple of more
cases. So Identifying all of such case and there corresponding Error Message won't be possible,
So, I catch all SnapshotException and get one Error code for them.

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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message