[ https://issues.apache.org/jira/browse/HIVE-22417?focusedWorklogId=796187&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-796187 ]
ASF GitHub Bot logged work on HIVE-22417: ----------------------------------------- Author: ASF GitHub Bot Created on: 28/Jul/22 20:57 Start Date: 28/Jul/22 20:57 Worklog Time Spent: 10m Work Description: belugabehr commented on code in PR #3478: URL: https://github.com/apache/hive/pull/3478#discussion_r932663972 ########## standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/ReplChangeManager.java: ########## @@ -378,32 +378,28 @@ static Path getCMPath(Configuration conf, String name, String checkSum, String c * @return Corresponding FileInfo object */ public static FileInfo getFileInfo(Path src, String checksumString, String srcCMRootURI, String subDir, - Configuration conf) throws MetaException { - try { - FileSystem srcFs = src.getFileSystem(conf); - if (checksumString == null) { - return new FileInfo(srcFs, src, subDir); - } + Configuration conf) throws IOException { + FileSystem srcFs = src.getFileSystem(conf); + if (checksumString == null) { + return new FileInfo(srcFs, src, subDir); + } - Path cmPath = getCMPath(conf, src.getName(), checksumString, srcCMRootURI); - if (!srcFs.exists(src)) { - return new FileInfo(srcFs, src, cmPath, checksumString, false, subDir); - } + Path cmPath = getCMPath(conf, src.getName(), checksumString, srcCMRootURI); + if (!srcFs.exists(src)) { + return new FileInfo(srcFs, src, cmPath, checksumString, false, subDir); + } - String currentChecksumString; - try { - currentChecksumString = checksumFor(src, srcFs); - } catch (IOException ex) { - // If the file is missing or getting modified, then refer CM path - return new FileInfo(srcFs, src, cmPath, checksumString, false, subDir); - } - if ((currentChecksumString == null) || checksumString.equals(currentChecksumString)) { - return new FileInfo(srcFs, src, cmPath, checksumString, true, subDir); - } else { - return new FileInfo(srcFs, src, cmPath, checksumString, false, subDir); - } - } catch (IOException e) { - throw new MetaException(StringUtils.stringifyException(e)); Review Comment: This comes from [HIVE-15525](https://issues.apache.org/jira/browse/HIVE-15525). I'm do not understand why this particular decision was made. Issue Time Tracking ------------------- Worklog Id: (was: 796187) Time Spent: 40m (was: 0.5h) > Remove stringifyException from MetaStore > ---------------------------------------- > > Key: HIVE-22417 > URL: https://issues.apache.org/jira/browse/HIVE-22417 > Project: Hive > Issue Type: Sub-task > Components: Metastore, Standalone Metastore > Affects Versions: 3.2.0 > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Major > Labels: pull-request-available > Attachments: HIVE-22417.1.patch, HIVE-22417.2.patch > > Time Spent: 40m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.20.10#820010)