[ 
https://issues.apache.org/jira/browse/HBASE-30456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HBASE-30456:
-----------------------------------
    Labels: pull-request-available  (was: )

> HBCK2 setRegionState fails with NPE when a replicaId is given
> -------------------------------------------------------------
>
>                 Key: HBASE-30456
>                 URL: https://issues.apache.org/jira/browse/HBASE-30456
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase-operator-tools
>            Reporter: Peter Somogyi
>            Assignee: Peter Somogyi
>            Priority: Major
>              Labels: pull-request-available
>
> HBCK2 {{setRegionState <PRIMARY_ENCODED_REGIONNAME>,<replicaId> <STATE>}} 
> throws a NullPointerException.
> {{formatSetRegionStateCommand}} uses Integer.getInteger(), which reads a 
> system property instead of parsing the string, so replicaId is null and the 
> replicaId > 0 check fails. The existing test calls setRegionState(conn, 
> region, replicaId, state) directly, so it misses this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to