[
https://issues.apache.org/jira/browse/HDFS-17888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18062140#comment-18062140
]
ASF GitHub Bot commented on HDFS-17888:
---------------------------------------
huangzhaobo99 commented on code in PR #8289:
URL: https://github.com/apache/hadoop/pull/8289#discussion_r2872331502
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/GenericTestUtils.java:
##########
@@ -221,8 +221,9 @@ public static File getTestDir() {
prop = DEFAULT_TEST_DATA_DIR;
}
File dir = new File(prop).getAbsoluteFile();
- dir.mkdirs();
- assertExists(dir);
+ if (dir.mkdirs() && !dir.exists()) {
+ throw new IllegalArgumentException("File " + dir + " should exist");
Review Comment:
Fixed
> Fix MiniCluster startup & HttpServer service's conf issues.
> -----------------------------------------------------------
>
> Key: HDFS-17888
> URL: https://issues.apache.org/jira/browse/HDFS-17888
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Zhaobo Huang
> Assignee: Zhaobo Huang
> Priority: Major
> Labels: pull-request-available
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]