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

ASF GitHub Bot commented on STORM-1693:
---------------------------------------

Github user abhishekagarwal87 commented on a diff in the pull request:

    https://github.com/apache/storm/pull/1326#discussion_r59215430
  
    --- Diff: 
storm-core/src/jvm/org/apache/storm/metric/internal/CountStatAndMetric.java ---
    @@ -197,12 +196,6 @@ long readApproximateTime(long value, long timeSpent, 
long[] bucketTime, long[] b
             return total;
         }
     
    -    public void close() {
    -        if (_task != null) {
    -            _task.cancel();
    --- End diff --
    
    @revans2 - As far as I could see, close is being called only in the 
render-stats. Tests initialize with negative number of buckets so _task is 
never initialized at all. 


> Negative counts in the UI for __metrics stream
> ----------------------------------------------
>
>                 Key: STORM-1693
>                 URL: https://issues.apache.org/jira/browse/STORM-1693
>             Project: Apache Storm
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Abhishek Agarwal
>            Assignee: Abhishek Agarwal
>            Priority: Critical
>         Attachments: Screen Shot 2016-04-07 at 7.05.01 PM.png
>
>
> Metrics reported by UI are not correct. I am seeing negative counts for 
> output stats in the bolt. The same application code works fine on 0.9.6 
> version of storm. 



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

Reply via email to