[ 
https://issues.apache.org/jira/browse/AMBARI-16821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15311100#comment-15311100
 ] 

Jonathan Hurley commented on AMBARI-16821:
------------------------------------------

Looks like the problem is that the classes are being shipped with 
{{ambari-metrics-common-2.4.0.0.5228.jar}} and are not being shaded.

{code}
[root@c6401 ambari-server]# pwd
/usr/lib/ambari-server
[root@c6401 ambari-server]# ls -l guava*
-rwxrwxrwx 1 root root 2225441 Jun  1 20:22 guava-16.0.jar
{code}

{code}
[root@c6401 ambari-server]# unzip -l ambari-metrics-common-2.4.0.0.5228.jar | 
grep Sets.class
     2859  06-01-2016 20:21   
com/google/common/collect/ImmutableMap$1MapViewOfValuesAsSingletonSets.class
    18255  06-01-2016 20:21   com/google/common/collect/Sets.class
{code}

> Improve TimelineMetricsCache eviction/flush logic using a cache library
> -----------------------------------------------------------------------
>
>                 Key: AMBARI-16821
>                 URL: https://issues.apache.org/jira/browse/AMBARI-16821
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-metrics
>    Affects Versions: 2.2.2
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-16821_1.patch, AMBARI-16821_2.patch, 
> AMBARI-16821_3-trunk.patch, AMBARI-16821_4-trunk.patch, BUG-55307.patch
>
>
> The TimelineMetricsCache implementation in the metrics sink side is currently 
> a ConcurrentSkipListMap. It is better to use pre built cache libraries like 
> Guava that offer more support.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to