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 B35DC200C2B for ; Thu, 2 Mar 2017 16:31:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B1FA2160B6F; Thu, 2 Mar 2017 15:31:43 +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 04BCF160B61 for ; Thu, 2 Mar 2017 16:31:42 +0100 (CET) Received: (qmail 30494 invoked by uid 500); 2 Mar 2017 15:31:42 -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 30482 invoked by uid 99); 2 Mar 2017 15:31:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2017 15:31:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 58E12C254D; Thu, 2 Mar 2017 15:31:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.002 X-Spam-Level: X-Spam-Status: No, score=0.002 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nVPGBQTDq7ps; Thu, 2 Mar 2017 15:31:39 +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 274B25F257; Thu, 2 Mar 2017 15:31:39 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5C017E0238; Thu, 2 Mar 2017 15:31:36 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 4C35CC40968; Thu, 2 Mar 2017 15:31:36 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0609838637715141462==" 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: Marta Kuczora To: Peter Vary , Sergio Pena , Aihua Xu , Chaoyu Tang Cc: Barna Zsombor Klara , Marta Kuczora , hive Date: Thu, 02 Mar 2017 15:31:36 -0000 Message-ID: <20170302153136.39766.14835@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Marta Kuczora X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/54065/ X-Sender: Marta Kuczora References: <20170127161836.13409.87363@reviews.apache.org> In-Reply-To: <20170127161836.13409.87363@reviews.apache.org> Reply-To: Marta Kuczora X-ReviewRequest-Repository: hive-git archived-at: Thu, 02 Mar 2017 15:31:43 -0000 --===============0609838637715141462== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Jan. 27, 2017, 4:18 p.m., Sergio Pena wrote: > > ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java > > Lines 972 (patched) > > > > > > If this condition does not happen ever, then lastModificationTime will end up being null, and basePartTs will contain the null value. Should we use the dataLocation timestamp in case of this condition is never called? Yes, you are right! This issue is fixed by fixing the previous one. - Marta ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/54065/#review163281 ----------------------------------------------------------- On Dec. 12, 2016, 1:04 p.m., Marta Kuczora wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/54065/ > ----------------------------------------------------------- > > (Updated Dec. 12, 2016, 1:04 p.m.) > > > Review request for hive, Aihua Xu, Chaoyu Tang, 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/1/ > > > 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 > > --===============0609838637715141462==--