[GitHub] carbondata pull request #2887: [HOTFIX] Throw original exception in thread p...

Posted by qiuchenjian-2 on
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-pull-request-2887-HOTFIX-Throw-original-exception-in-thread-p-tp67183p67186.html

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

    https://github.com/apache/carbondata/pull/2887#discussion_r229671196
 
    --- Diff: processing/src/main/java/org/apache/carbondata/processing/loading/steps/DataWriterProcessorStepImpl.java ---
    @@ -131,15 +130,15 @@ public CarbonFactDataHandlerModel getDataHandlerModel() {
             for (int j = 0; j < rangeExecutorServiceSubmitList.size(); j++) {
               rangeExecutorServiceSubmitList.get(j).get();
             }
    -      } catch (InterruptedException | ExecutionException e) {
    +      } catch (InterruptedException e) {
             throw new CarbonDataWriterException(e);
    +      } catch (ExecutionException e) {
    +        throw new CarbonDataWriterException(e.getCause());
    --- End diff --
   
    Here we get the exception in the thread by e.getCause


---