Peter Somogyi created HBASE-30456:
-------------------------------------
Summary: 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
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)