You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ConfX (Jira)" <ji...@apache.org> on 2023/07/19 16:24:00 UTC
[jira] [Updated] (HDFS-17110) Null Pointer Exception when running TestHarFileSystemWithHA#testHarUriWithHaUriWithNoPort
[ https://issues.apache.org/jira/browse/HDFS-17110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ConfX updated HDFS-17110:
-------------------------
Attachment: reproduce.sh
> Null Pointer Exception when running TestHarFileSystemWithHA#testHarUriWithHaUriWithNoPort
> ------------------------------------------------------------------------------------------
>
> Key: HDFS-17110
> URL: https://issues.apache.org/jira/browse/HDFS-17110
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: ConfX
> Priority: Critical
> Attachments: reproduce.sh
>
>
> h2. What happened
> After setting {{{}dfs.namenode.replication.min=12396{}}}, running test {{org.apache.hadoop.hdfs.server.namenode.ha.TestHarFileSystemWithHA#testHarUriWithHaUriWithNoPort}} results in a {{{}NullPointerException{}}}.
> h2. Where's the bug
> In the test {{{}org.apache.hadoop.hdfs.server.namenode.ha.TestHarFileSystemWithHA#testHarUriWithHaUriWithNoPort{}}}:
> {noformat}
> } finally {
> cluster.shutdown();
> }{noformat}
> the test tries to shutdown the cluster for cleaning up. However, if the cluster is not generated and cluster=null, the NPE would conceal other failures.
> h2. How to reproduce
> # Set {{dfs.namenode.replication.min=12396}}
> # Run {{org.apache.hadoop.hdfs.server.namenode.ha.TestHarFileSystemWithHA#testHarUriWithHaUriWithNoPort}}
> and the following exception should be observed:
> {noformat}
> java.lang.NullPointerException
> at org.apache.hadoop.hdfs.server.namenode.ha.TestHarFileSystemWithHA.testHarUriWithHaUriWithNoPort(TestHarFileSystemWithHA.java:60){noformat}
> For an easy reproduction, run the reproduce.sh in the attachment.
> We are happy to provide a patch if this issue is confirmed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org