[CONTROLLER-219] RPC providers are not cleaned up on bundle stop, causing bundle restart to fail Created: 20/Mar/14  Updated: 25/Jul/23  Resolved: 28/Mar/14

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Zoltan Lajos Kis Assignee: Kamal Rameshan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: File rpcclosetest.tar.gz    
External issue ID: 553

 Description   

At bundle start, RpcProviderRegistryImpl creates a proxy for the RPC provider class and adds it into publicProxies map. This entry does not get cleaned up when bundle stops. Hence, at subsequent start, RpcProviderRegistryImpl complains that the entry already exists.

I've attached a bundle that can be used to reproduce the problem. Once started, just stop and start it in the console.

Also see the following threads on controller-dev list:
https://lists.opendaylight.org/pipermail/controller-dev/2014-March/003202.html
https://lists.opendaylight.org/pipermail/controller-dev/2014-March/003292.html



 Comments   
Comment by Zoltan Lajos Kis [ 20/Mar/14 ]

Attachment rpcclosetest.tar.gz has been added with description: bundle to reproduce the bug

Comment by Kamal Rameshan [ 26/Mar/14 ]

https://git.opendaylight.org/gerrit/#/c/5782/

Submitted a patch for review.

Generated at Wed Feb 07 19:52:29 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.