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

Ted Yu commented on KAFKA-5820:
-------------------------------

[~mjsax] [~guozhang]:
Mind taking a look ?

> Remove unneeded synchronized keyword in StreamThread
> ----------------------------------------------------
>
>                 Key: KAFKA-5820
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5820
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Priority: Minor
>
> There are three methods in StreamThread which have unnecessary synchronized 
> keyword since the variable accessed, state, is volatile :
> isRunningAndNotRebalancing
> isRunning
> shutdown
> synchronized keyword can be dropped for these methods.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to