[ https://issues.apache.org/jira/browse/IMPALA-12526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17783815#comment-17783815 ]
ASF subversion and git services commented on IMPALA-12526: ---------------------------------------------------------- Commit 9af97895f891c465e3723be9140001ebd60d747b in impala's branch refs/heads/master from stiga-huang [ https://gitbox.apache.org/repos/asf?p=impala.git;h=9af97895f ] IMPALA-12526: Fix NullPointerException in testResetMetadataDesc BackendConfig.INSTANCE could be null when running CatalogOpUtilTest#testResetMetadataDesc(). This patch adds a setup method to make sure it's initialized. Tests - Verified the issue is resolved by running the test individually: (pushd fe && mvn test -Dtest=CatalogOpUtilTest#testResetMetadataDesc) Change-Id: Ic5c1c75ec92f4833caf1380a55a0bfd5056ef0cd Reviewed-on: http://gerrit.cloudera.org:8080/20674 Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Tested-by: Michael Smith <michael.sm...@cloudera.com> > BackendConfig.INSTANCE could be null in the frontend test > testResetMetadataDesc > ------------------------------------------------------------------------------- > > Key: IMPALA-12526 > URL: https://issues.apache.org/jira/browse/IMPALA-12526 > Project: IMPALA > Issue Type: Bug > Reporter: Fang-Yu Rao > Assignee: Quanlong Huang > Priority: Major > Labels: broken-build, flaky-test > Fix For: Impala 4.4.0 > > > We found that > [BackendConfig.INSTANCE|https://github.com/apache/impala/blob/master/fe/src/main/java/org/apache/impala/analysis/ResetMetadataStmt.java#L265] > could be null in the frontend test > [testResetMetadataDesc()|https://github.com/apache/impala/blob/master/fe/src/test/java/org/apache/impala/util/CatalogOpUtilTest.java#L65] > and thus > [ResetMetadataStmt#toThrift()|https://github.com/apache/impala/blob/master/fe/src/main/java/org/apache/impala/analysis/ResetMetadataStmt.java#L265] > could fail with the following error. > {code} > Cannot invoke "org.apache.impala.service.BackendConfig.getHostname()" because > "org.apache.impala.service.BackendConfig.INSTANCE" is null > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org