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

ASF GitHub Bot commented on PHOENIX-5838:
-----------------------------------------

dbwong commented on a change in pull request #1231:
URL: https://github.com/apache/phoenix/pull/1231#discussion_r724623354



##########
File path: 
phoenix-core/src/main/java/org/apache/phoenix/monitoring/TableHistograms.java
##########
@@ -104,16 +103,24 @@ public SizeHistogram getDeleteSizeHisto() {
     }
 
     public List<HistogramDistribution> getTableLatencyHistogramsDistribution() 
{
-        List<HistogramDistribution> list = new 
ArrayList<>(Arrays.asList(queryLatencyHisto.getRangeHistogramDistribution(),
-                upsertLatencyHisto.getRangeHistogramDistribution(), 
deleteLatencyHisto.getRangeHistogramDistribution(),
-                pointLookupLatencyHisto.getRangeHistogramDistribution(), 
rangeScanLatencyHisto.getRangeHistogramDistribution()));
+        ImmutableList<HistogramDistribution>
+                list =
+                
ImmutableList.of(queryLatencyHisto.getRangeHistogramDistribution(),
+                        upsertLatencyHisto.getRangeHistogramDistribution(),
+                        deleteLatencyHisto.getRangeHistogramDistribution(),
+                        
pointLookupLatencyHisto.getRangeHistogramDistribution(),
+                        rangeScanLatencyHisto.getRangeHistogramDistribution());
         return Collections.unmodifiableList(list);

Review comment:
       You don't need this unmodifiable list now that you are using 
ImmutableList.of




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


> Add Histograms for  Table level Metrics.
> ----------------------------------------
>
>                 Key: PHOENIX-5838
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5838
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: vikas meka
>            Assignee: vikas meka
>            Priority: Major
>              Labels: metric-collector, metrics
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to