port client CPU optimizations to hbase_2.0 - #331
Merged
WeiXinChan merged 1 commit intoSep 1, 2026
Merged
Conversation
Contributor
Author
AI Coding Review审查范围: [P1] BufferedMutatorParams.maxKeyValueSize 被静默忽略位置:[OHBufferedMutatorImpl.java (line 184)] 依赖风险同样依赖: Review 结论合入前需要修复 Mutator 参数失效问题,并验证依赖发布。 |
WeiXinChan
approved these changes
Sep 1, 2026
Contributor
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR ports the request/response hot-path optimizations from
obkv-table-client-javato the HBase 2.x client.It reduces CPU usage and temporary object allocation in HBase Get, Batch Get,
Scan, and Put operations while preserving the existing HBase client APIs and
legacy decoding paths.
Changes
Read path
ObHBaseCellBatchresults directly for:OHBaseResultCell, an immutableCellimplementation backeddirectly by decoded K/Q/T/V arrays.
List<ObObj>and unnecessaryKeyValuecopies on the compact result path.
closestRowBeforeresults.ObObj/KeyValuepath as a compatibility fallback.Write path
obkv-table-client-java.encoding.
ObBytesStringviews for sliced cell regions to avoid unnecessary clones.materializing deprecated compatibility structures.
Compatibility and safety
Table,Result, andCellbehavior.Dependency
obkv-table-clientfrom2.4.0to2.4.1-SNAPSHOT.obkv-table-client-java.Dependent PR: oceanbase/obkv-table-client-java#442
Tests
Added focused unit tests covering:
closestRowBeforeresult processingOHBaseResultCellcompatibility and TableGroup field rangesFocused test result: 39 tests passed with 0 failures and 0 errors.