HBASE-16390 Fix documentation around setAutoFlush

Signed-off-by: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
sahil aggarwal 2017-01-22 13:23:45 +05:30 committed by Chia-Ping Tsai
parent 929ef42591
commit 67029f93ea
1 changed files with 0 additions and 10 deletions

View File

@ -552,16 +552,6 @@ This is safer, however, than not using WAL at all with Puts.
Deferred log flush can be configured on tables via link:http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/HTableDescriptor.html[HTableDescriptor].
The default value of `hbase.regionserver.optionallogflushinterval` is 1000ms.
[[perf.hbase.client.autoflush]]
=== HBase Client: AutoFlush
When performing a lot of Puts, make sure that setAutoFlush is set to false on your link:http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Table.html[Table] 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`.
[[perf.hbase.client.putwal]]
=== HBase Client: Turn off WAL on Puts