[ https://issues.apache.org/jira/browse/HDFS-17103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17829323#comment-17829323 ]
ASF GitHub Bot commented on HDFS-17103: --------------------------------------- teamconfx commented on PR #6071: URL: https://github.com/apache/hadoop/pull/6071#issuecomment-2010748510 Hi @ayushtkn are we able to merge this? > messy file system cleanup in TestNameEditsConfigs > ------------------------------------------------- > > Key: HDFS-17103 > URL: https://issues.apache.org/jira/browse/HDFS-17103 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: ConfX > Priority: Critical > Labels: pull-request-available > Attachments: reproduce.sh > > > h2. What happened: > Got a {{NullPointerException}} without message when running > {{{}TestNameEditsConfigs{}}}. > h2. Where's the bug: > In line 450 of {{{}TestNameEditsConfigs{}}}, the test attempts to cleanup the > file system: > > {noformat} > ... > fileSys = cluster.getFileSystem(); > ... > } finally { > fileSys.close(); > cluster.shutdown(); > }{noformat} > However, the cleanup would result in a {{NullPointerException}} that covers > up the actual exception if the initialization of {{fileSys}} fails or another > exception is thrown before the line that initializes {{{}fileSys{}}}. > h2. How to reproduce: > (1) Set {{dfs.namenode.maintenance.replication.min}} to {{-1155969698}} > (2) Run test: > {{org.apache.hadoop.hdfs.server.namenode.TestNameEditsConfigs#testNameEditsConfigsFailure}} > h2. Stacktrace: > {noformat} > java.lang.NullPointerException, > at > org.apache.hadoop.hdfs.server.namenode.TestNameEditsConfigs.testNameEditsConfigsFailure(TestNameEditsConfigs.java:450),{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-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org