Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io 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 5D598166295 for ; Tue, 25 Jul 2017 08:07:11 +0200 (CEST) Received: (qmail 52661 invoked by uid 500); 25 Jul 2017 06:07:10 -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 52652 invoked by uid 99); 25 Jul 2017 06:07:10 -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; Tue, 25 Jul 2017 06:07:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 57374DFF8A; Tue, 25 Jul 2017 06:07:10 +0000 (UTC) From: sraghunandan To: issues@carbondata.apache.org Reply-To: issues@carbondata.apache.org References: In-Reply-To: Subject: [GitHub] carbondata pull request #1177: [CARBONDATA-1281] Support multiple temp dirs ... Content-Type: text/plain Message-Id: <20170725060710.57374DFF8A@git1-us-west.apache.org> Date: Tue, 25 Jul 2017 06:07:10 +0000 (UTC) Github user sraghunandan commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1177#discussion_r129202230 --- Diff: processing/src/main/java/org/apache/carbondata/processing/merger/RowResultMergerProcessor.java --- @@ -57,12 +57,15 @@ LogServiceFactory.getLogService(RowResultMergerProcessor.class.getName()); public RowResultMergerProcessor(String databaseName, - String tableName, SegmentProperties segProp, String tempStoreLocation, + String tableName, SegmentProperties segProp, String[] tempStoreLocation, CarbonLoadModel loadModel, CompactionType compactionType) { this.segprop = segProp; - if (!new File(tempStoreLocation).mkdirs()) { - LOGGER.error("Error while new File(tempStoreLocation).mkdirs() "); + for (String temLoc : tempStoreLocation) { + if (!new File(temLoc).mkdirs()) { + LOGGER.error("Error while new File(tempStoreLocation).mkdirs() "); --- End diff -- remove new File(tempStoreLocation).mkdirs() can log the temLoc --- 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. ---