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 49671200BA8 for ; Mon, 24 Oct 2016 08:56:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 47F69160AEB; Mon, 24 Oct 2016 06:56:00 +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 B55CB160AE1 for ; Mon, 24 Oct 2016 08:55:59 +0200 (CEST) Received: (qmail 18111 invoked by uid 500); 24 Oct 2016 06:55:58 -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 18096 invoked by uid 99); 24 Oct 2016 06:55:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2016 06:55:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5E2FF2C1F5A for ; Mon, 24 Oct 2016 06:55:58 +0000 (UTC) Date: Mon, 24 Oct 2016 06:55:58 +0000 (UTC) From: "binlijin (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16931) Setting cell's seqId to zero in compaction flow might cause RS down. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 24 Oct 2016 06:56:00 -0000 [ https://issues.apache.org/jira/browse/HBASE-16931?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D156= 01166#comment-15601166 ]=20 binlijin commented on HBASE-16931: ---------------------------------- Yes=EF=BC=8Ci do not check the writer, thanks very much for the confirm. > Setting cell's seqId to zero in compaction flow might cause RS down. > -------------------------------------------------------------------- > > Key: HBASE-16931 > URL: https://issues.apache.org/jira/browse/HBASE-16931 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 2.0.0 > Reporter: binlijin > Assignee: binlijin > Priority: Critical > Attachments: HBASE-16931-master.patch > > > Compactor#performCompaction > do { > hasMore =3D scanner.next(cells, scannerContext); > // output to writer: > for (Cell c : cells) { > if (cleanSeqId && c.getSequenceId() <=3D smallestReadPoint) { > CellUtil.setSequenceId(c, 0); > } > writer.append(c); > } > cells.clear(); > } while (hasMore); > scanner.next will choose at most "hbase.hstore.compaction.kv.max" kvs, th= e last cell still reference by StoreScanner.prevCell, so if cleanSeqId is c= alled when the scanner.next call StoreScanner.checkScanOrder may throw exce= ption and cause regionserver down. -- This message was sent by Atlassian JIRA (v6.3.4#6332)