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

Hudson commented on HBASE-24486:
--------------------------------

Results for branch master
        [build #1746 on 
builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/master/1746/]: (/) 
*{color:green}+1 overall{color}*
----
details (if available):

(/) {color:green}+1 general checks{color}
-- For more information [see general 
report|https://builds.apache.org/job/HBase%20Nightly/job/master/1746/General_20Nightly_20Build_20Report/]




(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) 
report|https://builds.apache.org/job/HBase%20Nightly/job/master/1600//JDK8_Nightly_Build_Report_(Hadoop2)/]


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


(/) {color:green}+1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11 
report|https://builds.apache.org/job/HBase%20Nightly/job/master/1746/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]


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


(/) {color:green}+1 client integration test{color}


> Remove the unused method online in admin.rb
> -------------------------------------------
>
>                 Key: HBASE-24486
>                 URL: https://issues.apache.org/jira/browse/HBASE-24486
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Zheng Wang
>            Assignee: Zheng Wang
>            Priority: Minor
>             Fix For: 3.0.0-alpha-1
>
>
> Skiming the todo list, seems this method not used any more.
>  
> {code:java}
> # Enables/disables a region by name
> def online(region_name, on_off)
>   # Open meta table
>   meta = 
> @connection.getTable(org.apache.hadoop.hbase.TableName::META_TABLE_NAME)
>   # Read region info
>   # FIXME: fail gracefully if can't find the region
>   region_bytes = region_name.to_java_bytes
>   g = org.apache.hadoop.hbase.client.Get.new(region_bytes)
>   g.addColumn(org.apache.hadoop.hbase.HConstants::CATALOG_FAMILY, 
> org.apache.hadoop.hbase.HConstants::REGIONINFO_QUALIFIER)
>   hri_bytes = meta.get(g).value
>   # Change region status
>   hri = org.apache.hadoop.hbase.util.Writables.getWritable(hri_bytes, 
> org.apache.hadoop.hbase.HRegionInfo.new)
>   hri.setOffline(on_off)
>   # Write it back
>   put = org.apache.hadoop.hbase.client.Put.new(region_bytes)
>   put.addColumn(org.apache.hadoop.hbase.HConstants::CATALOG_FAMILY,
>                 org.apache.hadoop.hbase.HConstants::REGIONINFO_QUALIFIER,
>                 org.apache.hadoop.hbase.util.Writables.getBytes(hri))
>   meta.put(put)
> end
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to