[ 
https://issues.apache.org/jira/browse/FLUME-933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arvind Prabhakar resolved FLUME-933.
------------------------------------

       Resolution: Fixed
    Fix Version/s: v1.1.0

Patch committed.
                
> Default[Source|Sink|Channel]Factory implementation should do reference 
> counting for create/unregistering instances.
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLUME-933
>                 URL: https://issues.apache.org/jira/browse/FLUME-933
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Arvind Prabhakar
>             Fix For: v1.1.0
>
>
> The current implementation of DefaultSourceFactory, DefaultSinkFactory and 
> DefaultChannelFactory ensures that if a create() is called for the same name 
> and type of object, it returns the previously created instance where 
> available. However, on deregister it directly removes the created object from 
> cache. This can lead to multiple instances of same name to exist within the 
> VM which in turn can cause other problems.
> Instead if the factory implementation does reference counting, it will be 
> able to ensure that the purge of an object happens only when the number of 
> unregister calls matches the create calls.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to