[SYSTEMMETR-1] Call to GetClusterMembers RPC throws NPE Created: 02/Jun/17 Updated: 06/Jul/17 Resolved: 06/Jul/17 |
|
| Status: | Resolved |
| Project: | systemmetrics |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Tyler Levine | Assignee: | Ashish Kumar |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 8590 |
| Priority: | High |
| Description |
|
When calling the GetClusterMembers RPC method, StatsCollector throws an NPE (see attached stack trace). This is due to a change in the exposed MBeans which StatsCollector relied on to get the members of the cluster. The relevant MBean is no longer present, so we get an NPE when we try to get a field from the resulting jolokia JSON object. The GetClusterMembers RPC should really use the akka MBean to determine cluster members instead of the hacky way it was done in StatsCollector before. |
| Comments |
| Comment by Tyler Levine [ 02/Jun/17 ] |
|
Attachment systemmetrics-stack-trace.txt has been added with description: stack trace |
| Comment by Ashish Kumar [ 04/Jul/17 ] |
|
Link to patches for solution: 1. https://git.opendaylight.org/gerrit/#/c/59705/ 2. https://git.opendaylight.org/gerrit/#/c/59944/ |