[OPNFLWPLUG-839] Openflow plugin statistic scheduler dies under unexpected exception Created: 09/Jan/17  Updated: 27/Sep/21  Resolved: 02/Feb/17

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

Type: Bug
Reporter: Jon Castro Assignee: Jozef Bacigal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 7499

 Description   

MD-SAL or any internal module could potentially throw an IllegalStateException exceptions that Openflow plugin can not manage and consequently the thread that is in charge of updating the statistics stops.

We have detected cases which this IllegalStateException exceptions have been produced and flow statistics are not updated anymore while the connection to the Openflow switch is stable and working properly.

In these scenarios, the controller keeps the ownership of the switch with a stable connection but the statistics are not updated anymore.

The source of the problem is related to the following piece of code in StatisticsManagerImpl.java method pollStatistics when defining the onFailure in the callback.

```
if (throwable instanceof IllegalStateException) {
stopScheduling(deviceInfo);
}
```



 Comments   
Comment by Jozef Bacigal [ 27/Jan/17 ]

https://git.opendaylight.org/gerrit/#/c/51127/3

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