Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4D5A3200D66 for ; Fri, 29 Dec 2017 09:05:24 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4BE23160C33; Fri, 29 Dec 2017 08:05:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B8DD7160C22 for ; Fri, 29 Dec 2017 09:05:23 +0100 (CET) Received: (qmail 80507 invoked by uid 500); 29 Dec 2017 08:05:23 -0000 Mailing-List: contact issues-help@carbondata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@carbondata.apache.org Delivered-To: mailing list issues@carbondata.apache.org Received: (qmail 80498 invoked by uid 99); 29 Dec 2017 08:05:22 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2017 08:05:22 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D6FEADFE46; Fri, 29 Dec 2017 08:05:22 +0000 (UTC) From: jackylk To: issues@carbondata.apache.org Reply-To: issues@carbondata.apache.org References: In-Reply-To: Subject: [GitHub] carbondata pull request #1739: [CARBONDATA-1834] when running insert overwri... Content-Type: text/plain Message-Id: <20171229080522.D6FEADFE46@git1-us-west.apache.org> Date: Fri, 29 Dec 2017 08:05:22 +0000 (UTC) archived-at: Fri, 29 Dec 2017 08:05:24 -0000 Github user jackylk commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1739#discussion_r159034322 --- Diff: integration/spark2/src/main/java/org/apache/carbondata/spark/vectorreader/VectorizedCarbonRecordReader.java --- @@ -121,12 +126,24 @@ public VectorizedCarbonRecordReader(QueryModel queryModel, InputMetricsStats inp while (ext != null) { if (ext instanceof FileNotFoundException) { throw new InterruptedException( - e.getMessage() + ". insert overwrite may be in progress.Please check"); + "Insert overwrite may be in progress.Please check " + e.getMessage()); } ext = ext.getCause(); } throw new InterruptedException(e.getMessage()); } + catch (Exception e) { + Throwable ext = e; + while (ext != null) { + if (ext instanceof FileNotFoundException) { + LOGGER.error(e); + throw new InterruptedException( + "Insert overwrite may be in progress.Please check " + e.getMessage()); --- End diff -- use new InterruptedException(msg, e) to add e itself to the InterruptedException object ---