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

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

Github user asfgit closed the pull request at:

    https://github.com/apache/storm/pull/776


> RateTracker.java is not thread safe
> -----------------------------------
>
>                 Key: STORM-1078
>                 URL: https://issues.apache.org/jira/browse/STORM-1078
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-core
>    Affects Versions: 0.11.0
>            Reporter: Robert Joseph Evans
>            Assignee: Robert Joseph Evans
>             Fix For: 0.11.0
>
>
> The RateTracker class is not thread safe at all.  It may not be that big of a 
> deal, but the rates will be off if we notify from multiple threads, like we 
> do with disruptor.  It also has the potential to be way off if notify is 
> being called at the same time as updateSlides.  This would result in the new 
> bucket not being set to 0, but getting the old value that was there 
> previously.
> We want to be very careful that what we do does not impact the performance 
> too much.  So ideally no big locks but use AtomicLongs instead.



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

Reply via email to