[
https://issues.apache.org/jira/browse/HDFS-2261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086720#comment-13086720
]
Tsz Wo (Nicholas), SZE commented on HDFS-2261:
----------------------------------------------
> In the meantime, should we disable the fault injection tests in HDFS?
I am not sure if you aware that there are at least two types of fault injection
tests.
- aop unit tests (src/test/aop)
- aop system tests (src/test/system)
Interestingly, aop unit tests work fine. I just have tried "ant
run-test-hdfs-fault-inject" and all tests are passed. However, aop system
tests cannot be compiled as described in this JIRA (i.e. "ant test-system"
fails). I might be wrong but it seems that no one is using aop system tests.
If it is the case, how about we remove aop system tests?
> hdfs trunk is broken with -compile-fault-inject ant target
> ----------------------------------------------------------
>
> Key: HDFS-2261
> URL: https://issues.apache.org/jira/browse/HDFS-2261
> Project: Hadoop HDFS
> Issue Type: Bug
> Environment:
> https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/834/console
> -compile-fault-inject ant target
> Reporter: Giridharan Kesavan
>
> -compile-fault-inject:
> [echo] Start weaving aspects in place
> [iajc]
> /home/jenkins/jenkins-slave/workspace/Hadoop-Hdfs-trunk-Commit/trunk/src/java/org/apache/hadoop/hdfs/HftpFileSystem.java:269
> [error] The method encodeQueryValue(String) is undefined for the type
> ServletUtil
> [iajc] ServletUtil.encodeQueryValue(ugi.getShortUserName()));
> ..........
> [iajc]
> /home/jenkins/jenkins-slave/workspace/Hadoop-Hdfs-trunk-Commit/trunk/src/test/system/aop/org/apache/hadoop/hdfs/server/namenode/NameNodeAspect.aj:50
> [warning] advice defined in
> org.apache.hadoop.hdfs.server.namenode.NameNodeAspect has not been applied
> [Xlint:adviceDidNotMatch]
> [iajc]
> [iajc]
> /home/jenkins/jenkins-slave/workspace/Hadoop-Hdfs-trunk-Commit/trunk/src/test/system/aop/org/apache/hadoop/hdfs/server/datanode/DataNodeAspect.aj:43
> [warning] advice defined in
> org.apache.hadoop.hdfs.server.datanode.DataNodeAspect has not been applied
> [Xlint:adviceDidNotMatch]
> [iajc]
> [iajc]
> [iajc] 18 errors, 4 warnings
> BUILD FAILED
> /home/jenkins/jenkins-slave/workspace/Hadoop-Hdfs-trunk-Commit/trunk/src/test/aop/build/aop.xml:222:
> The following error occurred while executing this line:
> /home/jenkins/jenkins-slave/workspace/Hadoop-Hdfs-trunk-Commit/trunk/src/test/aop/build/aop.xml:203:
> The following error occurred while executing this line:
> /home/jenkins/jenkins-slave/workspace/Hadoop-Hdfs-trunk-Commit/trunk/src/test/aop/build/aop.xml:90:
> compile errors: 18
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira