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 3959D200D72 for ; Sun, 24 Dec 2017 03:23:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2A29C160C2E; Sun, 24 Dec 2017 02:23:08 +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 6C6F2160C1C for ; Sun, 24 Dec 2017 03:23:07 +0100 (CET) Received: (qmail 8028 invoked by uid 500); 24 Dec 2017 02:23:06 -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 8017 invoked by uid 99); 24 Dec 2017 02:23:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Dec 2017 02:23:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 02B25C0FDA for ; Sun, 24 Dec 2017 02:23:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id L_pKu2DV1wgK for ; Sun, 24 Dec 2017 02:23:05 +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 A10005F121 for ; Sun, 24 Dec 2017 02:23:04 +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 9B794E0140 for ; Sun, 24 Dec 2017 02:23: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 CDF30240E2 for ; Sun, 24 Dec 2017 02:23:01 +0000 (UTC) Date: Sun, 24 Dec 2017 02:23:00 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-19550) Wrap the Mutation in cp layer to make sure all passed cells are of ExtendedCell MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 24 Dec 2017 02:23:08 -0000 [ https://issues.apache.org/jira/browse/HBASE-19550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16302641#comment-16302641 ] Ted Yu commented on HBASE-19550: -------------------------------- Looks good overall. Minor comments below. {code} + } catch (IOException e) { + // we eat the exception of wrong row for BC.. {code} Should the IOE be logged ? In Mutation : {code} + Mutation add(Cell cell) throws IOException { + //Checking that the row of the kv is the same as the put {code} 'put' is not accurate, right ? {code} + private static final class CellWrap implements ExtendedCell { {code} CellWrap -> CellWrapper {code} + public Optional getTag(byte type) { {code} The implementation is similar to PrivateCellUtil#getTag(). Is it possible to refactor the code ? > Wrap the Mutation in cp layer to make sure all passed cells are of ExtendedCell > ------------------------------------------------------------------------------- > > Key: HBASE-19550 > URL: https://issues.apache.org/jira/browse/HBASE-19550 > Project: HBase > Issue Type: Task > Reporter: Chia-Ping Tsai > Assignee: Chia-Ping Tsai > Fix For: 2.0.0-beta-2 > > Attachments: HBASE-19550.v0.patch > > > We assume all cells in server are of ExtendedCell. However, cp user can add their cell impl via Put#add(Cell) in observer. That will cause UnsupportedOperationException when rs try to update the cell's timestamp and seq Id. We should do something for cp user...For example, wrap the passed cells to be a extendcell type. -- This message was sent by Atlassian JIRA (v6.4.14#64029)