yangkun created FLUME-3324:
------------------------------

             Summary: BasicSourceSemantics should use volatile to replace 
synchronized method
                 Key: FLUME-3324
                 URL: https://issues.apache.org/jira/browse/FLUME-3324
             Project: Flume
          Issue Type: Improvement
            Reporter: yangkun


BasicSourceSemantics supply method to get channelProcessor、name etc.But the 
method is synchronized, this is means the Sources get ChannelProcessor, require 
synchronized every time, this is a performance impact.

Now, I don't kown why these methos use synchronized, If need, can 
channelProcessor、name etc. variables use volatile, so these methods can remove 
synchronized.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to