You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Weiwei Yang (JIRA)" <ji...@apache.org> on 2017/04/05 07:09:41 UTC
[jira] [Created] (HDFS-11625) Ozone: Replace hard coded datanode
data dir in test code with getStorageDir to fix UT failures
Weiwei Yang created HDFS-11625:
----------------------------------
Summary: Ozone: Replace hard coded datanode data dir in test code with getStorageDir to fix UT failures
Key: HDFS-11625
URL: https://issues.apache.org/jira/browse/HDFS-11625
Project: Hadoop HDFS
Issue Type: Sub-task
Components: ozone
Affects Versions: HDFS-7240
Reporter: Weiwei Yang
Assignee: Weiwei Yang
There seems to be some UT regressions after HDFS-11519, such as
* TestDataNodeVolumeFailureToleration
* TestDataNodeVolumeFailureReporting
* TestDiskBalancerCommand
* TestBlockStatsMXBean
* TestDataNodeVolumeMetrics
* TestDFSAdmin
* TestDataNodeHotSwapVolumes
* TestDataNodeVolumeFailure
these tests set up datanode data dir by some hard coded names, such as
{code}
new File(cluster.getDataDirectory(), "data1");
{code}
this no longer works since HDFS-11519 changes the pattern from
{code}
/data/data<2*dnIndex + 1>
/data/data<2*dnIndex + 2>
...
{code}
to
{code}
/data/dn0_data0
/data/dn0_data1
/data/dn1_data0
/data/dn1_data1
...
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org