[OPNFLWPLUG-423] StatisticsManager misses nodeadded and noderemoved operations when exceptions occur Created: 29/Apr/15 Updated: 27/Sep/21 Resolved: 02/Jun/15 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Kamal Rameshan | Assignee: | Kamal Rameshan |
| 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: | 3085 |
| Description |
|
Currently the nodeadded and node removed operations are batched along with the stat notification operations. This design is applicable to the stats but is not suited for node added and node removed. Node added and node removed should be applied directly and should not be queued. Issue is mostly seen with 250+ switches on a 3 node cluster. This might solve many issues with related to node added and node removed being submitted. |
| Comments |
| Comment by Kamal Rameshan [ 30/Apr/15 ] |
| Comment by Vaclav Demcak [ 04/May/15 ] |
|
Hi Kamal, you have right, a tx chain fail could bring a lot of problems. But a queue is holding the operation ordering in general. So please try to thing about next scenario (e.g. device are quickly connect/disconnect, so you are able to add bad statistics from disconnected device to new connected device - because we lost the ordering). So could we submit add/remove node as own tx commit ? |
| Comment by Kamal Rameshan [ 04/May/15 ] |
|
Hi Vaclav, I guess writing of stale-stat operations is an issue we still have, since inventory-manager processes the node-removed instantly and stats-manager processes it later. So for that brief period, we do see stale stats. I see it as below: we have 2 managers writing to operational. Inv and stats. And i feel there should not be a delay in both of these managers processing the nodeadded and node-removed. As a delay causes problems. In short, i dont see a value add in queueing the node-added and removed as part of the other non-priority stat operations. |
| Comment by Kamal Rameshan [ 04/May/15 ] |
|
Hi Vaclav, I have added a simple fix to mark stat operations via UUIDs to ignore stale operations. https://git.opendaylight.org/gerrit/#/c/19360/ Let me know if this addresses the issue. Thanks |