[
https://issues.apache.org/jira/browse/HADOOP-10590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoy Antony updated HADOOP-10590:
----------------------------------
Attachment: performance-test-without-rpc.patch
Running performance test *without RPC call*.
The performance test class is attached
10 client threads are started. Each of the threads make 1000 authorize
simultaneously.
The above is repeated 10 times and the total duration for each
iteration is recorded and average is also calculated.
The tests are executed on
2.6 GHz Intel Core i7 (8 core) , 16 GB 1600 MHz DDR3. Set log level to Error to
remove any logging.
The readings on for the following conditions are below:
*current code*
{panel}
The different times in milliseconds are: 448 , 202 , 165 , 225 , 160 , 171 ,
233 , 158 , 156 , 155.
The average time in milliseconds is: 207
{panel}
*synchronized authorize*
{panel}
The different times in milliseconds are: 461 , 227 , 190 , 256 , 168 , 210 ,
266 , 169 , 166 , 176.
The average time in milliseconds is: 229
{panel}
*volatile protocolToAcl*
{panel}
The different times in milliseconds are: 476 , 205 , 169 , 228 , 159 , 167 ,
237 , 161 , 158 , 156.
The average time in milliseconds is: 212
{panel}
> ServiceAuthorizationManager is not threadsafe
> ----------------------------------------------
>
> Key: HADOOP-10590
> URL: https://issues.apache.org/jira/browse/HADOOP-10590
> Project: Hadoop Common
> Issue Type: Bug
> Components: security
> Affects Versions: 2.4.0
> Reporter: Benoy Antony
> Assignee: Benoy Antony
> Attachments: HADOOP-10590.patch, performance-test-without-rpc.patch,
> performancetest.patch
>
>
> The mutators in ServiceAuthorizationManager are synchronized. The accessors
> are not synchronized.
> This results in visibility issues when ServiceAuthorizationManager's state
> is accessed from different threads.
--
This message was sent by Atlassian JIRA
(v6.2#6252)