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 640F8200D39 for ; Sat, 28 Oct 2017 03:42:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 62A3D160BF4; Sat, 28 Oct 2017 01:42:10 +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 A7839160BF2 for ; Sat, 28 Oct 2017 03:42:09 +0200 (CEST) Received: (qmail 22818 invoked by uid 500); 28 Oct 2017 01:42:08 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 22807 invoked by uid 99); 28 Oct 2017 01:42: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; Sat, 28 Oct 2017 01:42: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 DE8DA1807B1 for ; Sat, 28 Oct 2017 01:42:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id QT8IXCdrgkIQ for ; Sat, 28 Oct 2017 01:42:06 +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 22EC45FB2D for ; Sat, 28 Oct 2017 01:42:06 +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 C69E8E0FC2 for ; Sat, 28 Oct 2017 01:42:03 +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 A19A6212FC for ; Sat, 28 Oct 2017 01:42:01 +0000 (UTC) Date: Sat, 28 Oct 2017 01:42:01 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-19052) FixedFileTrailer should recognize CellComparatorImpl class in branch-1.x MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 28 Oct 2017 01:42:10 -0000 [ https://issues.apache.org/jira/browse/HBASE-19052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16223139#comment-16223139 ] Andrew Purtell commented on HBASE-19052: ---------------------------------------- Yes. I don't understand how we can't be backwards compatible in 2.0 and up, rather than forwards compatible from somewhere in 1.x. Double upgrade to latest 1.x then to 2.0 is a shit thing to require of an operator. Let's avoid it. > FixedFileTrailer should recognize CellComparatorImpl class in branch-1.x > ------------------------------------------------------------------------ > > Key: HBASE-19052 > URL: https://issues.apache.org/jira/browse/HBASE-19052 > Project: HBase > Issue Type: Improvement > Components: HFile > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Critical > Fix For: 1.4.0, 1.3.2, 1.5.0, 1.2.7, 1.1.13 > > Attachments: 19052.branch-1.txt > > > HBASE-18945 has gone into branch-2 . > Let's consider rolling upgrade scenario from 1.x to 2.0 where there're three servers: s1, s2, s3 > s1 is upgraded to 2.0 first. It flushes to hfile in region r1 with CellComparatorImpl written in the hfile trailer. > Somehow s1 crashes and master assigns r1 to s2 which is still running 1.x > The following code in FixedFileTrailer would be triggered: > {code} > try { > comparatorKlass = (Class) Class.forName(comparatorClassName); > } catch (ClassNotFoundException e) { > throw new IOException(e); > } > {code} > since s2 is not aware of CellComparatorImpl. > This issue is to backport CellComparatorImpl related change to branch-1.x > Note: CellComparatorImpl wouldn't be used in write path, only in read path. -- This message was sent by Atlassian JIRA (v6.4.14#64029)