You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2022/03/26 06:20:00 UTC

[jira] [Commented] (HBASE-25368) Filter out more invalid encoded name in isEncodedRegionName(byte[] regionName)

    [ https://issues.apache.org/jira/browse/HBASE-25368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17512681#comment-17512681 ] 

Hudson commented on HBASE-25368:
--------------------------------

Results for branch branch-2
	[build #499 on builds.a.o|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/499/]: (x) *{color:red}-1 overall{color}*
----
details (if available):

(/) {color:green}+1 general checks{color}
-- For more information [see general report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/499/General_20Nightly_20Build_20Report/]




(/) {color:green}+1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/499/JDK8_20Nightly_20Build_20Report_20_28Hadoop2_29/]


(/) {color:green}+1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3) report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/499/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]


(x) {color:red}-1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11 report|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/499/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]


(/) {color:green}+1 source release artifact{color}
-- See build output for details.


(x) {color:red}-1 client integration test{color}
--Failed when running client tests on top of Hadoop 2. [see log for details|https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2/499//artifact/output-integration/hadoop-2.log]. (note that this means we didn't run on Hadoop 3)


> Filter out more invalid encoded name in isEncodedRegionName(byte[] regionName) 
> -------------------------------------------------------------------------------
>
>                 Key: HBASE-25368
>                 URL: https://issues.apache.org/jira/browse/HBASE-25368
>             Project: HBase
>          Issue Type: Improvement
>          Components: Client
>            Reporter: Huaxiang Sun
>            Assignee: Huaxiang Sun
>            Priority: Major
>             Fix For: 3.0.0-alpha-1
>
>
> {code:java}
> public static boolean isEncodedRegionName(byte[] regionName) {
>   // If not parseable as region name, presume encoded. TODO: add stringency; e.g. if hex.
>   return parseRegionNameOrReturnNull(regionName) == null && regionName.length <= MD5_HEX_LENGTH;
> }
> Right now, if it passes in an table name, it still thinks  it is a encoded region name and will result in unnecessary registry query for meta regions. This can be avoided if table names can be filtered out early in this method.{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)