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

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

Github user ptgoetz commented on the pull request:

    https://github.com/apache/storm/pull/776#issuecomment-145148520
  
    +1


> 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
>
> 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