Affects Version/s: None
Fix Version/s: 2.0.0
Hadoop Flags:Incompatible change
Release Note:Remove the deprecated method get/setWriteBufferSize from Table and remove writeBufferSize from TableBuilder. Remove the BufferedMutatorImpl from HTable.
Copied the test result from
Run start-hbase.sh in my local computer and use the default config to test with PE tool.
Mean latency test result.
50th latency test result.
99th latency test result.
In our internal 0.98 branch, the PE test result shows the async write has the almost same latency with the blocking write. But for master branch, the result shows the async write has better latency than the blocking client. Take a look about the code, I thought the difference is the BufferedMutator. For master branch, HTable don't have a write buffer and all write request will be flushed directly. And user can use BufferedMutator when user want to perform client-side buffering of writes. For the performance issue (autoFlush=True), I thought we can use rpc caller directly in HTable's put method. Thanks.
Copy the comments from Chia-Ping Tsai. Remove the BufferdMutator brings four benefits.
1. correct the metrics (see
2. make HTable thread-safe (see
3. reduce the latency
4. get rid of some deprecated methods in Table