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 03338200C69 for ; Thu, 23 Mar 2017 07:14:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E387C160BAD; Thu, 23 Mar 2017 06:06:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (unknown [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D83B160BA8 for ; Thu, 23 Mar 2017 07:06:02 +0100 (CET) Received: (qmail 94651 invoked by uid 500); 23 Mar 2017 06:05: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 94634 invoked by uid 99); 23 Mar 2017 06:05:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2017 06:05:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D5398CAC9B for ; Thu, 23 Mar 2017 06:05:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.549 X-Spam-Level: X-Spam-Status: No, score=-98.549 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id nwSRd_AqjgU1 for ; Thu, 23 Mar 2017 06:05:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 443965FE02 for ; Thu, 23 Mar 2017 06:05:44 +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 BD76BE0BDE for ; Thu, 23 Mar 2017 06:05: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 046A1254F4 for ; Thu, 23 Mar 2017 06:05:42 +0000 (UTC) Date: Thu, 23 Mar 2017 06:05:42 +0000 (UTC) From: "Khurram Faraaz (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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: Thu, 23 Mar 2017 06:14:36 -0000 [ https://issues.apache.org/jira/browse/DRILL-5040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937786#comment-15937786 ] Khurram Faraaz commented on DRILL-5040: --------------------------------------- Verified on Drill 1.10.0 commit ID: b657d44f Interrupted CTAS does not create physical file on disk. > 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)