You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by manishgupta88 <gi...@git.apache.org> on 2016/08/24 08:48:43 UTC

[GitHub] incubator-carbondata pull request #81: [CARBONDATA-132] Fix the bug that the...

Github user manishgupta88 commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/81#discussion_r76017047
  
    --- Diff: integration/spark/src/main/scala/org/apache/carbondata/spark/rdd/CarbonDataRDDFactory.scala ---
    @@ -773,20 +776,27 @@ object CarbonDataRDDFactory extends Logging {
           } catch {
             case ex: Throwable =>
               loadStatus = CarbonCommonConstants.STORE_LOADSTATUS_FAILURE
    -          logInfo("DataLoad failure")
    +          ex match {
    +            case sparkException: SparkException =>
    +              if (sparkException.getCause.isInstanceOf[DataLoadingException]) {
    +                executorMessage = sparkException.getCause.getMessage
    +                errorMessage = errorMessage + ": " + executorMessage
    +              }
    +            case _ =>
    --- End diff --
    
    @Zhangshunyu ...for case _ also get the message from throwable and add it to error message same as you have done for sparkException case


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---