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 7596C200BD1 for ; Mon, 28 Nov 2016 12:10:12 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6F7B4160B0D; Mon, 28 Nov 2016 11:10:12 +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 B9804160B06 for ; Mon, 28 Nov 2016 12:10:11 +0100 (CET) Received: (qmail 56549 invoked by uid 500); 28 Nov 2016 11:10:10 -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 56525 invoked by uid 99); 28 Nov 2016 11:10:10 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2016 11:10:10 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 3B50F2F6C65; Mon, 28 Nov 2016 11:10:08 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7692791630996954676==" MIME-Version: 1.0 Subject: Re: Review Request 54065: HIVE-15282: Different modification times are used when an index is built and when its staleness is checked From: Peter Vary To: Peter Vary , Sergio Pena , Aihua Xu Cc: hive , Marta Kuczora Date: Mon, 28 Nov 2016 11:10:08 -0000 Message-ID: <20161128111008.5576.37218@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Peter Vary X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/54065/ X-Sender: Peter Vary References: <20161124151722.27388.97900@reviews.apache.org> In-Reply-To: <20161124151722.27388.97900@reviews.apache.org> Reply-To: Peter Vary X-ReviewRequest-Repository: hive-git archived-at: Mon, 28 Nov 2016 11:10:12 -0000 --===============7692791630996954676== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/54065/#review157014 ----------------------------------------------------------- Thanks for the patch! Nice detailed description on the Jira. Thansk for tracking this issue dowm! ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java (line 978) We might want to use the dataLocation local variable here - Peter Vary On Nov. 24, 2016, 3:17 p.m., Marta Kuczora wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/54065/ > ----------------------------------------------------------- > > (Updated Nov. 24, 2016, 3:17 p.m.) > > > Review request for hive, Aihua Xu, Peter Vary, and Sergio Pena. > > > Bugs: HIVE-15282 > https://issues.apache.org/jira/browse/HIVE-15282 > > > Repository: hive-git > > > Description > ------- > > Changed the way how the modification time is determined for partitions in the DDLTask.alterIndex method to be the same as when the index staleness is checked. Instead of using the modification date of the partition folder, go through the files in the folder and use the highest modification time and save it as index property. With this we can avoid the issue when the folder and the file is created when the second turns. So the modification time of the folder is in the previous second compared to the modification time of the file. > If the partition folder doesn't contain any files, then use the folder's modification time, just as before. > > > Diffs > ----- > > ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java cfece77 > > Diff: https://reviews.apache.org/r/54065/diff/ > > > Testing > ------- > > Ran the index_auto_mult_tables_compact and index_auto_mult_tables q tests multiple times, with hard-coded delay with which the test failure described in HIVE-15282 could be reproduced. With the patch, the tests were always successful. > Also ran all index related q tests. > > > Thanks, > > Marta Kuczora > > --===============7692791630996954676==--