You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Peter Somogyi (Jira)" <ji...@apache.org> on 2026/10/04 19:30:00 UTC

[jira] [Created] (HBASE-30456) HBCK2 setRegionState fails with NPE when a replicaId is given

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)