hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16390) Fix documentation around setAutoFlush
Date Sun, 22 Jan 2017 06:21:26 GMT

    [ https://issues.apache.org/jira/browse/HBASE-16390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15833312#comment-15833312

stack commented on HBASE-16390:

The below commit adds the deprecation.

commit 211c1e8ad439f2dfbbd2f07ce099c0f948e06df3
Author: Enis Soztutar <enis@apache.org>
Date:   Tue Sep 2 13:07:02 2014 -0700

    HBASE-11797 Create Table interface to replace HTableInterface (Carter)

It was added for hbase 0.99, i.e. before 1.0.0 shipped. Therefore, it has been deprecated
for a full major version come 2.0.0 which means, according to our published semver agreement
up in the refguide that it is now safe to remove HTableInerface. Resolve this one and open
a new one to clean up HTI? Thanks [~awked06] (assigned this issue to you so you can manage
the transition)

> Fix documentation around setAutoFlush
> -------------------------------------
>                 Key: HBASE-16390
>                 URL: https://issues.apache.org/jira/browse/HBASE-16390
>             Project: HBase
>          Issue Type: Bug
>          Components: documentation
>            Reporter: stack
>            Priority: Minor
>              Labels: beginner
> Our documentation is a little confused around setAutoFlush. Talks of Table but setAutoFlush
is not in the Table interface. It was on HTable but was deprecated and since removed. Clean
up the doc:
> {code}
> 100.4. HBase Client: AutoFlush
> When performing a lot of Puts, make sure that setAutoFlush is set to false
> on your Table
> <http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Table.html>
> instance.
> Otherwise, the Puts will be sent one at a time to the RegionServer. Puts
> added via table.add(Put) and table.add( <List> Put) wind up in the same
> write buffer. If autoFlush = false, these messages are not sent until the
> write-buffer is filled. To explicitly flush the messages, call flushCommits.
> Calling close on the Table instance will invoke flushCommits
> {code}
> Spotted by Jeff Shmain.

This message was sent by Atlassian JIRA

View raw message