David Citron created CONFIGURATION-786:
------------------------------------------

             Summary: ReloadingCombinedConfigurationBuilder needs to clear the 
reloadingController on resetParameters()
                 Key: CONFIGURATION-786
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-786
             Project: Commons Configuration
          Issue Type: Bug
          Components: File reloading
    Affects Versions: 2.6
            Reporter: David Citron


Modifying the _configuration definition file_ causes 
{{CombinedConfigurationBuilder.resetParameters()}} to be called. This cleans up 
and clears the {{sourceData}} variable which causes the next invocation of 
{{initResultInstance()}} to create new child {{ConfigurationBuilder}}s.

However, {{ReloadingCombinedConfigurationBuilder.reloadingController}} is not 
cleared (set to null) and, as such, reloading stops working until a full 
restart.

I have worked around this by using reflection to set 
{{ReloadingCombinedConfigurationBuilder.reloadingController}} to null when 
{{resetParameters()}} is called, but perhaps further thought is required 
vis-a-vis a fix because re-creating the {{reloadingController }} means that any 
attached {{PeriodicReloadingTrigger}}s need to be shut down and re-created too 
(which is what I'm currently doing to make all this work).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to