You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Tamas Payer (Jira)" <ji...@apache.org> on 2020/09/16 09:41:00 UTC
[jira] [Resolved] (AMBARI-25549) NegativeArraySizeException thrown
when invoking CurrentCollectorHost
[ https://issues.apache.org/jira/browse/AMBARI-25549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tamas Payer resolved AMBARI-25549.
----------------------------------
Resolution: Fixed
> NegativeArraySizeException thrown when invoking CurrentCollectorHost
> --------------------------------------------------------------------
>
> Key: AMBARI-25549
> URL: https://issues.apache.org/jira/browse/AMBARI-25549
> Project: Ambari
> Issue Type: Bug
> Components: ambari-metrics
> Affects Versions: 2.6.1, 2.7.3, 2.7.4, 2.7.5
> Reporter: Tamas Payer
> Assignee: Tamas Payer
> Priority: Major
> Fix For: 2.7.6
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> SMM is using *AbstractTimelineMetricsSink* class to fetch and push metrics to Ambari Metric Collector in multi-threaded manner.
> When all the AMS live nodes are down([http://localhost:6188/ws/v1/timeline/metrics/livenodes]), the method [getCurrentCollectorHost|https://github.com/apache/ambari-metrics/blob/c7dcf2b25241e2cfe6931d6261a43be97e0deaba/ambari-metrics-common/src/main/java/org/apache/hadoop/metrics2/sink/timeline/AbstractTimelineMetricsSink.java#L273] throws _NegativeArraySizeException_.
> {code:java}
> ava.lang.NegativeArraySizeException: null at java.util.AbstractCollection.toArray(AbstractCollection.java:136) at java.util.ArrayList.<init>(ArrayList.java:178) at org.apache.hadoop.metrics2.sink.timeline.AbstractTimelineMetricsSink$1.get(AbstractTimelineMetricsSink.java:460) at org.apache.hadoop.metrics2.sink.timeline.AbstractTimelineMetricsSink$1.get(AbstractTimelineMetricsSink.java:450) at org.apache.hadoop.metrics2.sink.relocated.google.common.base.Suppliers$ExpiringMemoizingSupplier.get(Suppliers.java:192) at org.apache.hadoop.metrics2.sink.timeline.AbstractTimelineMetricsSink.getCurrentCollectorHost(AbstractTimelineMetricsSink.java:264) at com.hortonworks.smm.kafka.services.metric.ams.AMSMetricsFetcher.getCollectorAPIUri(AMSMetricsFetcher.java:231)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)