You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/05/20 12:12:57 UTC
[GitHub] [carbondata] qiuchenjian commented on a change in pull request
#3226: [CARBONDATA-3393] Merge Index Job Failure should not trigger the
merge index job again. Exception should be propagated to the caller.
qiuchenjian commented on a change in pull request #3226: [CARBONDATA-3393] Merge Index Job Failure should not trigger the merge index job again. Exception should be propagated to the caller.
URL: https://github.com/apache/carbondata/pull/3226#discussion_r285559623
##########
File path: integration/spark-common/src/main/scala/org/apache/spark/rdd/CarbonMergeFilesRDD.scala
##########
@@ -82,19 +84,34 @@ object CarbonMergeFilesRDD {
readFileFooterFromCarbonDataFile).collect()
}
} catch {
- case _: Exception =>
- if (CarbonCommonConstants.CARBON_MERGE_INDEX_IN_SEGMENT_DEFAULT.toBoolean) {
- new CarbonMergeFilesRDD(
- sparkSession,
- carbonTable,
- segmentIds,
- segmentFileNameToSegmentIdMap,
- carbonTable.isHivePartitionTable,
- readFileFooterFromCarbonDataFile).collect()
- }
+ case ex: Exception =>
+ val message = "Merge Index files request is failed " +
+ s"for table ${ carbonTable.getTableUniqueName }" + ex.getMessage
+ LOGGER.error(message)
+ ex.printStackTrace()
Review comment:
better to delete ```ex.printStackTrace()```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services