You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2018/03/21 22:13:11 UTC

[jira] [Updated] (HBASE-16390) Fix documentation around setAutoFlush

     [ https://issues.apache.org/jira/browse/HBASE-16390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-16390:
--------------------------
    Fix Version/s: 2.0.0

> 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
>            Assignee: Sahil Aggarwal
>            Priority: Minor
>              Labels: beginner
>             Fix For: 2.0.0-alpha-3, 2.0.0
>
>         Attachments: HBASE-16390.master.001.patch
>
>
> 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
(v7.6.3#76005)