Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72C0117C4F for ; Mon, 23 Mar 2015 18:23:07 +0000 (UTC) Received: (qmail 87332 invoked by uid 500); 23 Mar 2015 18:22:52 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 87295 invoked by uid 500); 23 Mar 2015 18:22:52 -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 87282 invoked by uid 99); 23 Mar 2015 18:22:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2015 18:22:52 +0000 Date: Mon, 23 Mar 2015 18:22:52 +0000 (UTC) From: "Mikhail Antonov (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-13271) Table#puts(List) operation is indeterminate; needs fixing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-13271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14376331#comment-14376331 ] Mikhail Antonov commented on HBASE-13271: ----------------------------------------- [~larsgeorge] do you think we need also jira to add getNumRows() and getCurrentWriteBufferSize() to BufferedMutator interface, as discussed above? > Table#puts(List) operation is indeterminate; needs fixing > -------------------------------------------------------------- > > Key: HBASE-13271 > URL: https://issues.apache.org/jira/browse/HBASE-13271 > Project: HBase > Issue Type: Improvement > Components: API > Affects Versions: 1.0.0 > Reporter: stack > Fix For: 2.0.0, 1.0.1, 1.1.0 > > > Another API issue found by [~larsgeorge]: > "Table.put(List {code} > [Mar-17 9:21 AM] Lars George: Table.put(List) is weird since you cannot flush partial lists > [Mar-17 9:21 AM] Lars George: Say out of 5 the third is broken, then the put() call returns with a local exception (say empty Put) and then you have 2 that are in the buffer > [Mar-17 9:21 AM] Lars George: but how to you force commit them? > [Mar-17 9:22 AM] Lars George: In the past you would call flushCache(), but that is "gone" now > [Mar-17 9:22 AM] Lars George: and flush() is not available on a Table > [Mar-17 9:22 AM] Lars George: And you cannot access the underlying BufferedMutation neither > [Mar-17 9:23 AM] Lars George: You can *only* add more Puts if you can, or call close() > [Mar-17 9:23 AM] Lars George: that is just weird to explain > {code} > So, Table needs to get flush back or we deprecate this method or it flushes immediately and does not return until complete in the implementation. -- This message was sent by Atlassian JIRA (v6.3.4#6332)