From issues-return-339747-archive-asf-public=cust-asf.ponee.io@hbase.apache.org Thu Mar 22 14:34:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 572EA18076D for ; Thu, 22 Mar 2018 14:34:04 +0100 (CET) Received: (qmail 94610 invoked by uid 500); 22 Mar 2018 13:34:03 -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 94595 invoked by uid 99); 22 Mar 2018 13:34:03 -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; Thu, 22 Mar 2018 13:34:03 +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 C7107182D89 for ; Thu, 22 Mar 2018 13:34:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, 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 voiLPXW2R9GO for ; Thu, 22 Mar 2018 13:34:02 +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 5E35E5F173 for ; Thu, 22 Mar 2018 13:34:01 +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 923B2E021C for ; Thu, 22 Mar 2018 13:34:00 +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 506CC214D8 for ; Thu, 22 Mar 2018 13:34:00 +0000 (UTC) Date: Thu, 22 Mar 2018 13:34:00 +0000 (UTC) From: "Pankaj Kumar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-20231) Not able to delete column family from a row using RemoteHTable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-20231?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Pankaj Kumar updated HBASE-20231: --------------------------------- Attachment: HBASE-20231-v3.patch > Not able to delete column family from a row using RemoteHTable > -------------------------------------------------------------- > > Key: HBASE-20231 > URL: https://issues.apache.org/jira/browse/HBASE-20231 > Project: HBase > Issue Type: Bug > Components: REST > Reporter: Pankaj Kumar > Assignee: Pankaj Kumar > Priority: Major > Fix For: 1.5.0 > > Attachments: HBASE-20231-branch-1-v2.patch, HBASE-20231-branch-1.= patch, HBASE-20231-v2.patch, HBASE-20231-v3.patch, HBASE-20231.patch > > > Example code to reproduce the issue, > {code:java} > Cluster cluster =3D new Cluster(); > cluster.add("rest-server-IP", rest-server-port); > Client client =3D new Client(cluster); > RemoteHTable table =3D new RemoteHTable(client, "t1"); > // Insert few records, > Put put =3D new Put(Bytes.toBytes("r1")); > put.add(Bytes.toBytes("cf1"), Bytes.toBytes("c1"), Bytes.toBytes("c1"= )); > put.add(Bytes.toBytes("cf1"), Bytes.toBytes("c2"), Bytes.toBytes("c2"= )); > put.add(Bytes.toBytes("cf2"), Bytes.toBytes("c1"), Bytes.toBytes("c1"= )); > table.put(put); > put =3D new Put(Bytes.toBytes("r2")); > put.add(Bytes.toBytes("cf1"), Bytes.toBytes("c1"), Bytes.toBytes("c1"= )); > put.add(Bytes.toBytes("cf1"), Bytes.toBytes("c2"), Bytes.toBytes("c2"= )); > put.add(Bytes.toBytes("cf2"), Bytes.toBytes("c1"), Bytes.toBytes("c1"= )); > table.put(put); > // Delete the entire column family from the row > Delete del =3D new Delete(Bytes.toBytes("r2")); > del.addFamily(Bytes.toBytes("cf1")); > table.delete(del); > {code} > Here the problem is in building row specification in RemoteHTable.buildRo= wSpec(). Row specification is framed as "/t1/r2/cf1:" instead of "/t1/r2/cf= 1".=C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)