[
https://issues.apache.org/jira/browse/RANGER-3378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17403614#comment-17403614
]
caozhiqiang commented on RANGER-3378:
-------------------------------------
!getAsString.png|width=868,height=192!
[~madhan], thanks for your suggest. Please see the benchmark result for
namenode above. We can see that in function
RangerAccessResourceImpl.getAsString(), the RangerAccessResourceImpl.getValue,
RangerAccessResourceImpl.exists and StringBuilder.append also expend too much
time. So I try to modify as RANGER-3378-branch-2.0.1.002.patch. And then the
time of RangerAccessResourceImpl.getAsString() expend can been ignore in
benchmark result.
I have create a review in [https://reviews.apache.org/r/73540/] . I have not
contribute to ranger before, so I am not sure with this process. Thank you for
your help.
> StringBuilder.append spend too much time, should be replace to improve plugin
> performance
> -----------------------------------------------------------------------------------------
>
> Key: RANGER-3378
> URL: https://issues.apache.org/jira/browse/RANGER-3378
> Project: Ranger
> Issue Type: Improvement
> Components: plugins
> Affects Versions: 2.0.1
> Reporter: caozhiqiang
> Priority: Major
> Attachments: RANGER-3378-branch-2.0.1.001.patch, getAsString.png,
> getAsString.png
>
>
> When enable ranger hdfs plugin, the performance is degraded. Use java
> analysis tools found the
> org/apache/ranger/plugin/policyengine/RangerAccessResourceImpl.getAsString
> function take too much time. We should replace it to improve performance.
> !getAsString.png|width=939,height=371!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)