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

Konstantin Boudnik updated HADOOP-6197:
---------------------------------------

    Attachment: HADOOP-6197.patch
                HADOOP-6197.sh

These two files show the essence of needed modifications. New aspect will 
instrument {{AccessTokenHandler}} class with two required methods. Thus, these 
aren't needed any longer in the source code of {{AccessTokenHandler}}.

At this time, the patch can't be applied because Common project doesn't use the 
fault injection framework introduced for HDFS (see HDFS-435). However, as soon 
as the framework will be ported over to the Common, we'll be able to use this 
very method of code instrumentation.

Also, the patch might require some extra fine tuning like moving some tests 
from a 'normal' test list into 'fault-injected' test list.

> Use aspects to introduce new methods required for testing
> ---------------------------------------------------------
>
>                 Key: HADOOP-6197
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6197
>             Project: Hadoop Common
>          Issue Type: Test
>          Components: security, test
>            Reporter: Konstantin Boudnik
>         Attachments: HADOOP-6197.patch, HADOOP-6197.sh
>
>
> HADOOP-6176 introduces two new methods which are essentially required for 
> testing purposes. However, this bring a permanent modifications to the 
> production code.
> The same result can be reached by using aspect development. Thus the 
> modifications will be brought in by byte code instrumentation and will exist 
> only during the testing cycles.

-- 
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