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 E7BE9200B78 for ; Thu, 18 Aug 2016 16:14:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E65C4160A76; Thu, 18 Aug 2016 14:14:24 +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 38FE6160AAE for ; Thu, 18 Aug 2016 16:14:24 +0200 (CEST) Received: (qmail 75030 invoked by uid 500); 18 Aug 2016 14:14:23 -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 75010 invoked by uid 99); 18 Aug 2016 14:14:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 14:14:23 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 974332C02A4 for ; Thu, 18 Aug 2016 14:14:22 +0000 (UTC) Date: Thu, 18 Aug 2016 14:14:22 +0000 (UTC) From: "Jean-Marc Spaggiari (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16439) Row mutation: missing rows with Put contains thousands of columns MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 Aug 2016 14:14:25 -0000 [ https://issues.apache.org/jira/browse/HBASE-16439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426528#comment-15426528 ] Jean-Marc Spaggiari commented on HBASE-16439: --------------------------------------------- I built the example with the given pom (CDH 5.3.3). Tested it against CDH 5.3.0 => Able to reproduce Tested it against HBase 0.98.21 just released => Not able to reproduce. Tested it against CDH 5.3.10 (Last CDH 5.3 release) => Able to reproduce So please open a ticket with the specific vendor. > Row mutation: missing rows with Put contains thousands of columns > ----------------------------------------------------------------- > > Key: HBASE-16439 > URL: https://issues.apache.org/jira/browse/HBASE-16439 > Project: HBase > Issue Type: Bug > Components: hbase > Affects Versions: 0.98.6 > Environment: Cloudera CDH 5.3.3 > Reporter: Stas Makutin > Attachments: HBaseAtomic.zip > > > Some rows is missing when put them into a table using mutateRow method and each row has thousands of columns. The code excerpt: > {code} > try (HConnection hc = HConnectionManager.createConnection(conf)) { > try (HTableInterface table = hc.getTable(tableName)) { > final LocalDate startDate = LocalDate.of(1980, 01, 01); > for (int i = 0; i < 15000; i++) { > byte[] row = Bytes.toBytes(Integer.toString(i)); > long ts = System.currentTimeMillis(); > Put put = new Put(row, ts + 1); > LocalDate date = startDate; > for (int j = 0; j < 5000; j++) { > put.add( > family, > Bytes.toBytes(DateTimeFormatter.BASIC_ISO_DATE.format(date)), > Bytes.toBytes(Integer.toString(j)) > ); > date = date.plusDays(1); > } > > RowMutations rm = new RowMutations(row); > rm.add(put); > > table.mutateRow(rm); > } > } > } > {code} > Resulting number of rows varies - sometimes it 200, sometimes it 8000. But never expected 15000. > The full code of test application is attached. -- This message was sent by Atlassian JIRA (v6.3.4#6332)