HBASE-27146 Avoid CellUtil.cloneRow in MetaCellComparator#4571
Conversation
|
I think we need to run some JMH benchmarks to see the performance impact of this change. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
bbeaudreault
left a comment
There was a problem hiding this comment.
Code LGTM. I presume we already have good enough test coverage for this? Do we need specific tests for some of these new methods?
I think the current coverage is enough. MetaCellComparator will be used in almost all the UTs which start a mini cluster, and it will also be tested when merging/splitting. Let's wait for the pre commit result. |
|
Sounds good. I just wasnt sure how often the UTs currently mix and match ByteBufferExtendedCell with other types of Cell |
|
At server side, when reading from the HFile or reading from the rpc request, we will have ByteBufferKeyValue, that's why the flame graph in HBASE-26981 shows we spend a lot of time in CellUtil.cloneRow. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
sorry @Apache9 your test failure here is a flake that i had temporarily added, but I pushed an addendum seemingly after you created this branch. you might want to rebase to pick it up |
|
Rebased. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
OK, good. All green. Reverted the dummy commit. Will merge after the new pre commit job finishes. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> Reviewed-by: SiCheng-Zheng <643463623@qq.com> (cherry picked from commit b1691a5)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> Reviewed-by: SiCheng-Zheng <643463623@qq.com> (cherry picked from commit b1691a5)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> Reviewed-by: SiCheng-Zheng <643463623@qq.com> (cherry picked from commit b1691a5)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> Reviewed-by: SiCheng-Zheng <643463623@qq.com> (cherry picked from commit b1691a5)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org> Reviewed-by: SiCheng-Zheng <643463623@qq.com> cherry-picked from 2472a77 Change-Id: Ief487ae75356da2b4a08789d0e4c6786bf7a8a96
No description provided.