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 CE2F7200C15 for ; Wed, 8 Feb 2017 17:47:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CCD70160B5A; Wed, 8 Feb 2017 16:47:47 +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 1FFED160B49 for ; Wed, 8 Feb 2017 17:47:46 +0100 (CET) Received: (qmail 16575 invoked by uid 500); 8 Feb 2017 16:47:46 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 16566 invoked by uid 99); 8 Feb 2017 16:47:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2017 16:47:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EACF3180684 for ; Wed, 8 Feb 2017 16:47:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id s5rd_EpYhMYd for ; Wed, 8 Feb 2017 16:47:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 0572F5F283 for ; Wed, 8 Feb 2017 16:47:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2B3D9E0485 for ; Wed, 8 Feb 2017 16:47:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A7EAA2528C for ; Wed, 8 Feb 2017 16:47:41 +0000 (UTC) Date: Wed, 8 Feb 2017 16:47:41 +0000 (UTC) From: "Arina Ielchiieva (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-5040) Interrupted CTAS should not succeed & should not create physical file on disk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Feb 2017 16:47:48 -0000 [ https://issues.apache.org/jira/browse/DRILL-5040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Arina Ielchiieva updated DRILL-5040: ------------------------------------ Labels: ready-to-commit (was: ) > Interrupted CTAS should not succeed & should not create physical file on disk > ----------------------------------------------------------------------------- > > Key: DRILL-5040 > URL: https://issues.apache.org/jira/browse/DRILL-5040 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Flow > Affects Versions: 1.9.0 > Reporter: Khurram Faraaz > Assignee: Arina Ielchiieva > Labels: ready-to-commit > Fix For: 1.10.0 > > > We should not allow CTAS to succeed (i.e create physical file on disk ) in the case where it was interrupted. (vis Ctrl-C) > Drill 1.9.0 > git commit ID : db30854 > Consider the below CTAS that was interrupted using Ctrl-C > {noformat} > 0: jdbc:drill:schema=dfs.tmp> create table temp_t1 as select * from `twoKeyJsn.json`; > [ issue Ctrl-C while the above CTAS is running ] > No rows affected (7.694 seconds) > {noformat} > I verified that physical file was created on disk, even though the above CTAS was Canceled > {noformat} > [root@centos-01 ~]# hadoop fs -ls /tmp/temp_t1* > -rwxr-xr-x 3 root root 36713198 2016-11-14 10:51 /tmp/temp_t1/0_0_0.parquet > {noformat} > We are able to do a select on the CTAS table (above) that was Canceled. > {noformat} > 0: jdbc:drill:schema=dfs.tmp> select count(*) from temp_t1; > +----------+ > | EXPR$0 | > +----------+ > | 3747840 | > +----------+ > 1 row selected (0.183 seconds) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)