Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 59EFB178A7 for ; Fri, 17 Oct 2014 19:01:35 +0000 (UTC) Received: (qmail 1667 invoked by uid 500); 17 Oct 2014 19:01:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 1591 invoked by uid 500); 17 Oct 2014 19:01:34 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 1578 invoked by uid 500); 17 Oct 2014 19:01:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 1575 invoked by uid 99); 17 Oct 2014 19:01:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2014 19:01:34 +0000 Date: Fri, 17 Oct 2014 19:01:34 +0000 (UTC) From: "Xiaobing Zhou (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-8497) StatsNoJobTask doesn't close RecordReader, FSDataInputStream of which keeps open to prevent stale data clean MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-8497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14175390#comment-14175390 ] Xiaobing Zhou commented on HIVE-8497: ------------------------------------- Thanks [~prashuj]! > StatsNoJobTask doesn't close RecordReader, FSDataInputStream of which keeps open to prevent stale data clean > ------------------------------------------------------------------------------------------------------------ > > Key: HIVE-8497 > URL: https://issues.apache.org/jira/browse/HIVE-8497 > Project: Hive > Issue Type: Bug > Affects Versions: 0.14.0 > Environment: Windows > Reporter: Xiaobing Zhou > Assignee: Xiaobing Zhou > Priority: Critical > Attachments: HIVE-8497.1.patch > > > run the test > {noformat} > mvn -Phadoop-2 test -Dtest=TestCliDriver -Dqfile=alter_merge_stats_orc.q > {noformat} > to reproduce it. Simply, this query does three data loads which generates three base orc files. > ANALYZE TABLE...COMPUTE STATISTICS NOSCAN will execute StatsNoJobTask to get stats, where file handle is held so as not able to clean base file. As a result, after running ALTER TABLE..CONCATENATE, follow-up queries go to stale base file and merged file. -- This message was sent by Atlassian JIRA (v6.3.4#6332)