[OPNFLWPLUG-513] Exception at removeUnreportedFlows in StatisticsManagerImpl Created: 08/Jul/15 Updated: 27/Sep/21 Resolved: 27/Nov/15 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Henry Fung | Assignee: | Monika Verma |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 3957 |
| Description |
|
This bug is found in stable/lithium and also main. 2015-07-07 14:37:15,748 | WARN | ds-oper-thread-0 | StatisticsManagerImpl | 264 - org.opendaylight.openflowplugin.applications.statistics-manager - 0.1.1.SNAPSHOT | Unhandled exception during processing statistics. Restarting transaction chain. After the exception, there were side-effect null pointer exceptions whenever there were statistics poll. The fix is simple:
|
| Comments |
| Comment by Partha Datta [ 03/Aug/15 ] |
|
Reassigned to sunaina.khanna |
| Comment by Sunaina Khanna [ 04/Aug/15 ] |
|
Hi Henry, |
| Comment by Henry Fung [ 04/Aug/15 ] |
|
Hi Sunaina, |
| Comment by Michal Rehak [ 10/Aug/15 ] |
|
https://git.opendaylight.org/gerrit/#/c/25111/ merged |
| Comment by Sunaina Khanna [ 12/Aug/15 ] |
|
Sure,but I could not find the test cases for the class.Should I implement the test cases for the same? |
| Comment by Michal Rehak [ 13/Aug/15 ] |
|
Well best practices claim that every fix should be accompanied by (unit) test proving that fix right. If such a test already exits then fix the test first so that it fails upon that issue. In this case you can create new test class and focus on that particular method (removeUnreportedFlows()). And of course if you feel confident in adding unit test coverage for class StatListenCommitFlow then you are welcome to cover even more of it. |
| Comment by Monika Verma [ 27/Nov/15 ] |
|
Added the unit tests covering the method removeUnreportedFlows() and some part of method statsFlowCommitAll() |