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 65302200CF7 for ; Tue, 5 Sep 2017 04:31:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6392B164BD8; Tue, 5 Sep 2017 02:31:14 +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 AB66F164B8B for ; Tue, 5 Sep 2017 04:31:13 +0200 (CEST) Received: (qmail 12232 invoked by uid 500); 5 Sep 2017 02:31:12 -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 12220 invoked by uid 99); 5 Sep 2017 02:31:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2017 02:31:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C27FC1A19CC for ; Tue, 5 Sep 2017 02:31:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id t4oI_NPzdICX for ; Tue, 5 Sep 2017 02:31:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A1AAC60E17 for ; Tue, 5 Sep 2017 02:31: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 28870E0ED9 for ; Tue, 5 Sep 2017 02:31:05 +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 A846E2414F for ; Tue, 5 Sep 2017 02:31:02 +0000 (UTC) Date: Tue, 5 Sep 2017 02:31:02 +0000 (UTC) From: "Xudong Zheng (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-18755) Set Increment getReturnResults to false will cause batch failed by using BufferedMutator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Sep 2017 02:31:14 -0000 Xudong Zheng created HBASE-18755: ------------------------------------ Summary: Set Increment getReturnResults to false will cause batch failed by using BufferedMutator Key: HBASE-18755 URL: https://issues.apache.org/jira/browse/HBASE-18755 Project: HBase Issue Type: Bug Components: Client Affects Versions: 1.2.0 Reporter: Xudong Zheng I try to do batch of increment in Spark rdd like this: {code:scala} var connection: Connection = null var bufferdMutator: BufferedMutator = null try { connection = getConnection bufferdMutator = getBufferedMutator(connection) dataItr.foreach(row => try { val rowKey = toRowKey(row) val increment = new Increment(rowKey) increment.setDurability(Durability.SKIP_WAL) increment.setReturnResults(false) meas.foreach(columnName => { increment.addColumn("cf".getBytes, Bytes.toBytes(columnName), row.getAs[Long](columnName)) }) bufferdMutator.mutate(increment) } catch { case t: Throwable => logger.error(t.getMessage, t) }) bufferdMutator.flush() } catch { case t: Throwable => logger.error(t.getMessage, t) } finally { IOUtils.closeQuietly(bufferdMutator) } {code} Because I do not need the return result, thus I use increment.setReturnResults(false) . When flush to Hbase, I got the flowing exception. When I change increment.setReturnResults(true) everything is OK 17/09/04 17:55:39 ERROR client.AsyncProcess: #32, Caught throwable while calling. This is unexpected. Retrying. Server is hadoop02,60020,1502272041150, tableName=push:msgHourInfo java.lang.RuntimeException: java.lang.IllegalStateException: actions.getActionCount=1, actionResult.getResultOrExceptionCount=0 for region type: REGION_NAME value: "msgHourInfo,,1504318878177.1edc4215ef0853432b1598a0b1965519." at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:208) at org.apache.hadoop.hbase.client.AsyncProcess$AsyncRequestFutureImpl$SingleServerRequestRunnable.run(AsyncProcess.java:733) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalStateException: actions.getActionCount=1, actionResult.getResultOrExceptionCount=0 for region type: REGION_NAME value: "push:msgHourInfo,,1504318878177.1edc4215ef0853432b1598a0b1965519." at org.apache.hadoop.hbase.protobuf.ResponseConverter.getResults(ResponseConverter.java:117) at org.apache.hadoop.hbase.client.MultiServerCallable.call(MultiServerCallable.java:133) at org.apache.hadoop.hbase.client.MultiServerCallable.call(MultiServerCallable.java:53) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200) ... 6 more -- This message was sent by Atlassian JIRA (v6.4.14#64029)