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 B07B7200CD2 for ; Wed, 12 Jul 2017 23:50:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AE731166E2E; Wed, 12 Jul 2017 21:50:11 +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 096CC166420 for ; Wed, 12 Jul 2017 23:50:10 +0200 (CEST) Received: (qmail 9904 invoked by uid 500); 12 Jul 2017 21:50:10 -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 9858 invoked by uid 99); 12 Jul 2017 21:50:08 -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, 12 Jul 2017 21:50:08 +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 17D3F196251 for ; Wed, 12 Jul 2017 21:50:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 5NtS4T_6Fvmy for ; Wed, 12 Jul 2017 21:50:07 +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 31B236273B for ; Wed, 12 Jul 2017 21:50:02 +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 65370E0E07 for ; Wed, 12 Jul 2017 21:50:01 +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 5EE732473E for ; Wed, 12 Jul 2017 21:50:00 +0000 (UTC) Date: Wed, 12 Jul 2017 21:50:00 +0000 (UTC) From: "Jinfeng Ni (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5660) Drill 1.10 queries fail due to Parquet Metadata "corruption" from DRILL-3867 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 12 Jul 2017 21:50:11 -0000 [ https://issues.apache.org/jira/browse/DRILL-5660?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1608= 4777#comment-16084777 ]=20 Jinfeng Ni commented on DRILL-5660: ----------------------------------- I thought you are asking for change to make Drill1.10 work with the new cre= ated parquet metadata file on 1.11. However, from the last sentence, seems = you are talking about to make sure staring from drill 1.11, it will work wi= th any new future change. Did i miss anything here? Also, from the Oracle example, where did you see that Oracle will fail with= an error if you run on top of a newer catalog? From the link, it's not cle= ar to me.=20 > Drill 1.10 queries fail due to Parquet Metadata "corruption" from DRILL-3= 867 > -------------------------------------------------------------------------= --- > > Key: DRILL-5660 > URL: https://issues.apache.org/jira/browse/DRILL-5660 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.11.0 > Reporter: Paul Rogers > Assignee: Vitalii Diravka > Fix For: 1.11.0 > > > Drill recently accepted a PR for the following bug: > DRILL-3867: Store relative paths in metadata file > This PR turned out to have a flaw which affects version compatibility. > The DRILL-3867 PR changed the format of Parquet metadata files to store r= elative paths. All Drill servers after that PR create files with relative p= aths. But, the version number of the file is unchanged, so that older Drill= bits don't know that they can't understand the file. > Instead, if an older Drill tries to read the file, queries fail left and = right. Drill will resolve the paths, but does so relative to the user's HDF= S home directory, which is wrong. > What should have happened is that we should have bumped the parquet metad= ata file version number so that older Drillbits can=E2=80=99t read the file= . This ticket requests that we do that. > Now, one could argue that the lack of version number change is fine. Once= a user upgrades Drill, they won't use an old Drillbit. But, things are not= that simple: > * A developer tests a branch based on a pre-DRILL-3867 build on a cluster= in which metadata files have been created by a post-DRILL-3867 build. (Thi= s has already occurred multiple times in our shop.) > * A user tries to upgrade to Drill 1.11, finds an issue, and needs to rol= l back to Drill 1.10. Doing so will cause queries to fail due to seemingly-= corrupt metadata files. > * A user tries to do a rolling upgrade: running 1.11 on some servers, 1.1= 0 on others. Once a 1.11 server is installed, the metadata is updated ("cor= rupted" from the perspective of 1.10) and queries fail. > Standard practice in this scenario is to: > * Bump the file version number when the file format changes, and > * Software refuses to read files with a version newer than the software w= as designed for. > Of course, it is highly desirable that newer servers read old files, but = that is not the issue here. -- This message was sent by Atlassian JIRA (v6.4.14#64029)