[ 
https://issues.apache.org/jira/browse/HADOOP-6326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konstantin Boudnik updated HADOOP-6326:
---------------------------------------

    Attachment: HADOOP-6326.patch

Copy-cat of HDFS-584. I've created new aspect with incorrectly specified 
pointcut and ran the build. 
{noformat}
compile-fault-inject:
     [echo] Start weaving aspects in place
     [iajc] warning at 
/Users/xxx/work/Common/src/test/aop/org/apache/hadoop/fs/DUAspects.aj:11::0 
advice defined in org.apache.hadoop.fs.DUAspects has not been applied 
[Xlint:adviceDidNotMatch]

BUILD FAILED
/Users/xxx/work/Common/src/test/aop/build/aop.xml:74: The following error 
occurred while executing this line:
/Users/xxx/work/Common/src/test/aop/build/aop.xml:57: 
/Users/xxx/work/Common/build-fi/compile-fi.log doesn't exist

Total time: 1 minute 16 seconds
{noformat}


> Hundson runs should check for AspectJ warnings and report failure if any is 
> present
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-6326
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6326
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>            Reporter: Konstantin Boudnik
>            Assignee: Konstantin Boudnik
>            Priority: Critical
>         Attachments: HADOOP-6326.patch
>
>
> When a code modifications break AspectJ bindings the following warning 
> appears in the ant's build output:
> {noformat}
>      [echo] Start weaving aspects in place
>      [iajc] warning at 
> /Users/cos/work/branch-0.21/src/test/aop/org/apache/hadoop/hdfs/server/datanode/FSDatasetAspects.aj:55::0
>  advice defined in org.apache.hadoop.hdfs.server.datanode.FSDatasetAspects 
> has not been applied [Xlint:adviceDidNotMatch]
>      [echo] Weaving of aspects is finished
> {noformat}
> Build process (in particular under Hudson) needs to check the output for such 
> warnings and fail the build if any is present

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to