[OPNFLWPLUG-690] He plugin: Statistics collector thread may be blocked forever. Created: 19/May/16 Updated: 27/Sep/21 Resolved: 08/Jul/16 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Shigeru Yasuda | Assignee: | Anil Vishnoi |
| 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: | 5916 |
| Description |
|
Version: Steps to reproduce: Step 2 may record the following log. 2016-05-19 19:57:42,171 | WARN | Pool-8-worker-11 | StatRpcMsgManagerImpl | 179 - org.opendaylight.openflowplugin.applications.statistics-manager - 0.3.0.SNAPSHOT | Response Registration for Statistics RPC call fail! at org.opendaylight.controller.remote.rpc.RemoteRpcImplementation$1.onComplete(RemoteRpcImplementation.java:66)[161:org.opendaylight.controller.sal-remoterpc-connector:1.4.0.SNAPSHOT] If that warning is logged, statistics collector thread is being blocked and no one wakes it up. "odl-stat-collector-1-thread-0" #936 prio=5 os_prio=0 tid=0x00007f68ac054000 nid=0x5914 waiting on condition [0x00007f67dbb4f000]
|
| Comments |
| Comment by Shigeru Yasuda [ 19/May/16 ] |
|
The root cause is StatRpcMsgManagerImpl.registrationRpcFutureCallBack(). The callback added by registrationRpcFutureCallBack() sets the transaction ID to resultTransId if it sends a MULTIPART_REQUEST successfully. The callback needs to wake up statistics collector thread in any case. |
| Comment by Shigeru Yasuda [ 19/May/16 ] |
| Comment by Shuva Jyoti Kar [ 11/Jun/16 ] |
|
changes look good ! cherry-picked the same to stable/Be: |
| Comment by Shuva Jyoti Kar [ 11/Jun/16 ] |
|
oops pasted the gerrit at the wrong place. |
| Comment by Shigeru Yasuda [ 24/Jun/16 ] |
|
https://git.opendaylight.org/gerrit/40788 (stable/beryllium) |