[TSDR-9] TSDR inventory and poller thread are sleeping mode,after uninstallation of TSDR components Created: 08/Jun/15  Updated: 12/Feb/16  Resolved: 12/Feb/16

Status: Resolved
Project: tsdr
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Vasanthan Balasubramaniyan Assignee: Sharon Aicler
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: JPEG File TSDR_H2_Uninstall.jpg     JPEG File TSDR_HBase_Uninstall.jpg    
Issue Links:
Duplicate
duplicates CONTROLLER-611 Module method close() not invoked on ... Resolved
External issue ID: 3617

 Description   

Environment:
Build-2371

Problem:
After uninstall of TSDR components,TSDR Inventory and storing threads are sleeping mode instead thread terminated.

Step to Reproduce:
1.Install "odl-tsdr-all" or "odl-tsdr-hbase"
2.Once all tsdr components initialized and wait for 2-4 minutes.
3.Uninstall all odl tsdr components.

Still you can see tsdr threads doesnot terminated.Waited morethan 10 minutes,doesn't terminated for this same.

--Attached YourKit thread monitors (after Uninstall of TSDR components)

Note:
1.This issue applicable in both H2 & Hbase Datastore.
2.If logout and restarted the karaf console,this issue doesn't visible.



 Comments   
Comment by Vasanthan Balasubramaniyan [ 08/Jun/15 ]

Attachment TSDR_H2_Uninstall.jpg has been added with description: TSDR-H2-Uninstall thread

Comment by Vasanthan Balasubramaniyan [ 08/Jun/15 ]

Attachment TSDR_HBase_Uninstall.jpg has been added with description: TSDR-Hbase Uninstall thread

Comment by Sharon Aicler [ 17/Jun/15 ]

Added the shutdown method to the close method in the module + made sure there is no lag until the threads are shutdown.

Comment by Vasanthan Balasubramaniyan [ 22/Jun/15 ]

Still issue visible on RC2 Build (both H2 & HBase Datastore)

Comment by Sharon Aicler [ 23/Jan/16 ]

The callback "close" in the AutoClosable interface in the module is not being executed when the feature is uninstalled. This is a framework wide issue in ODL...

Comment by YuLing Chen [ 08/Feb/16 ]

Today in my testing environment, I was able to both set and retrieve the polling interval from both snmp and openflow stas collector.

The following are URLs for both snmp and OF stats collector:
http://localhost:8181/restconf/operations/tsdr-snmp-data-collector:setPollingInterval
http://localhost:8181/restconf/operations/tsdr-openflow-statistics-collector:setPollingInterval
http://localhost:8181/restconf/config/tsdr-snmp-data-collector:TSDRSnmpDataCollectorConfig
http://localhost:8181/restconf/config/tsdr-openflow-statistics-collector:TSDROSCConfig

Comment by yuling chen [ 12/Feb/16 ]

There's an existing bug in config subsystem that causes the observed behavior. If that bug is fixed, this issue will be gone too.
CONTROLLER-611 - Module method close() not invoked on uninstall or stop. (edit)

Therefore, this is a duplicate bug.

Generated at Wed Feb 07 20:46:07 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.