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 0DDF6200D61 for ; Tue, 5 Dec 2017 04:00:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0C6E1160C1B; Tue, 5 Dec 2017 03:00:06 +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 7C058160BF9 for ; Tue, 5 Dec 2017 04:00:05 +0100 (CET) Received: (qmail 98461 invoked by uid 500); 5 Dec 2017 03:00:04 -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 98445 invoked by uid 99); 5 Dec 2017 03:00:04 -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, 05 Dec 2017 03:00:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F22D4DFBEE; Tue, 5 Dec 2017 03:00:03 +0000 (UTC) From: ravipesala To: issues@carbondata.apache.org Reply-To: issues@carbondata.apache.org References: In-Reply-To: Subject: [GitHub] carbondata pull request #1608: [CARBONDATA-1761]do not change status of segm... Content-Type: text/plain Message-Id: <20171205030003.F22D4DFBEE@git1-us-west.apache.org> Date: Tue, 5 Dec 2017 03:00:03 +0000 (UTC) archived-at: Tue, 05 Dec 2017 03:00:06 -0000 Github user ravipesala commented on a diff in the pull request: https://github.com/apache/carbondata/pull/1608#discussion_r154835999 --- Diff: core/src/main/java/org/apache/carbondata/core/statusmanager/SegmentStatusManager.java --- @@ -493,6 +493,19 @@ public static void writeLoadDetailsIntoFile(String dataLoadLocation, invalidLoadIds.add(loadId); return invalidLoadIds; } + // if the segment status is in progress then no need to delete that. + if (SegmentStatus.INSERT_IN_PROGRESS == loadMetadata.getSegmentStatus()) { + LOG.error("Cannot delete the Segment which is In Progress. Segment is " + loadId); + invalidLoadIds.add(loadId); + return invalidLoadIds; + } + // if the segment status is overwrite in progress, then no need to delete that. + if (SegmentStatus.INSERT_OVERWRITE_IN_PROGRESS == loadMetadata.getSegmentStatus()) { + LOG.error("Cannot delete the Segment which is Overwrite In Progress. " + --- End diff -- Please rephrase the sentence `"Cannot delete the segemnt "+ loadId +" which is load overwrite in progress" ` ---