[
https://issues.apache.org/jira/browse/HBASE-28258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HBASE-28258:
-----------------------------------
Labels: pull-request-available (was: )
> compact_rs not support hostname,port
> ------------------------------------
>
> Key: HBASE-28258
> URL: https://issues.apache.org/jira/browse/HBASE-28258
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 2.2.7, 2.5.0, 2.4.3, 2.3.6
> Reporter: Moran
> Priority: Minor
> Labels: pull-request-available
>
> hbase:010:0> compact_rs 'hadoop-222-149.hfb.odeon.cn,60020'
> ERROR: begin 28, end 27, length 33
> Should have something to do with ServerName.ValueOf(),It has changed from
> HBASE-24305.
> {code:java}
> public static ServerName valueOf(final String serverName) {
> int firstSep = serverName.indexOf(SERVERNAME_SEPARATOR);
> int lastSep = serverName.lastIndexOf(SERVERNAME_SEPARATOR);
> String hostname = serverName.substring(0, firstSep);
> int port = Integer.parseInt(serverName.substring(firstSep + 1, lastSep));
> long startCode = Long.parseLong(serverName.substring(lastSep + 1));
> return valueOf(hostname, port, startCode);
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)