[CONTROLLER-611] Module method close() not invoked on uninstall or stop. Created: 07/Jul/14 Updated: 25/Jul/23 Resolved: 05/Jul/17 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | config |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Ken Jarrad | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Issue Links: |
|
||||||||
| External issue ID: | 1322 | ||||||||
| Priority: | Normal | ||||||||
| Description |
|
There is a method in the Java code generated from Yang: public abstract java.lang.AutoCloseable createInstance(); I implement createInstance() to return an instance of AutoClose with a close() method that closes all my socket connections. There is also a log statement in the close() method. Naturally I want to check that the close() method executes. I want to see the log output. If I shutdown Equinox then close() is invoked but not if I uninstall or stop the bundle. Note that a shutdown after uninstall or stop does invoke close(). |
| Comments |
| Comment by Abhishek Kumar [ 15/Apr/15 ] |
|
UP'ed the the severity. This blocks a karaf feature redeployment. Steps to reproduce: 1. Create an MD-SAL based feature In JConsole, if you check the list of modules installed by Config subsystem, your newly installed module will be absent. While debugging, following is my observation:
|
| Comment by Tony Tkacik [ 15/Apr/15 ] |
|
This would require additional design and interactions such as deconfiguring your feature on uninstall (since your configuration was applied) which would probably require behaviour change / API change. I am not sure if this is doable in Lithium and or stable/helium |
| Comment by Tom Pantelis [ 05/Jul/17 ] |
|
The CSS is being deprecated so not worth addressing. Blueprint provides the desired behavior. |