You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2026/10/09 21:14:00 UTC
[jira] [Updated] (PHOENIX-7765) NPE on first invocation of getClusterRoleRecord API
[ https://issues.apache.org/jira/browse/PHOENIX-7765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell updated PHOENIX-7765:
-----------------------------------------
Fix Version/s: PHOENIX-7562-feature
5.4.0
> NPE on first invocation of getClusterRoleRecord API
> ---------------------------------------------------
>
> Key: PHOENIX-7765
> URL: https://issues.apache.org/jira/browse/PHOENIX-7765
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Tanuj Khurana
> Assignee: Lokesh Khurana
> Priority: Major
> Fix For: PHOENIX-7562-feature, 5.4.0
>
>
> The first invocation of getClusterRoleRecord API always errors out with a NPE. The retry succeeds. This is because the region server list is not initialized by default when initializing cqsi.
> {code:java}
> 2026-02-16 13:25:13,010 ERROR GetClusterRoleRecordUtil - Error in getting ClusterRoleRecord for testConnectionWhenActiveZKRestarts from url jdbc:phoenix+rpc:localhost\:58988org.apache.phoenix.exception.PhoenixIOException at org.apache.phoenix.util.ClientUtil.parseServerException(ClientUtil.java:72) at org.apache.phoenix.util.GetClusterRoleRecordUtil.getClusterRoleRecord(GetClusterRoleRecordUtil.java:113) at org.apache.phoenix.util.GetClusterRoleRecordUtil.fetchClusterRoleRecord(GetClusterRoleRecordUtil.java:144) at org.apache.phoenix.jdbc.HighAvailabilityGroup.getClusterRoleRecordFromEndpoint(HighAvailabilityGroup.java:957) at org.apache.phoenix.jdbc.HighAvailabilityGroup.init(HighAvailabilityGroup.java:612) at org.apache.phoenix.jdbc.HighAvailabilityGroup.get(HighAvailabilityGroup.java:383) at org.apache.phoenix.jdbc.HighAvailabilityTestingUtility.lambda$getHighAvailibilityGroup$0(HighAvailabilityTestingUtility.java:1135) at org.apache.hadoop.hbase.GenericTestUtils.waitFor(GenericTestUtils.java:97) at org.apache.phoenix.jdbc.HighAvailabilityTestingUtility.getHighAvailibilityGroup(HighAvailabilityTestingUtility.java:1132) at org.apache.phoenix.jdbc.FailoverPhoenixConnection2IT.setup(FailoverPhoenixConnection2IT.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54) at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456) at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169) at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581)Caused by: java.lang.NullPointerException at org.apache.phoenix.util.GetClusterRoleRecordUtil.getClusterRoleRecord(GetClusterRoleRecordUtil.java:85) ... 55 more
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)