Skip to content

Added test and fix to coord_serv not giving list for status.#645

Merged
borshop merged 2 commits into
2.0from
bugfix/mw/snmp-stats-crash-when-no-leader
Dec 19, 2014
Merged

Added test and fix to coord_serv not giving list for status.#645
borshop merged 2 commits into
2.0from
bugfix/mw/snmp-stats-crash-when-no-leader

Conversation

@lordnull
Copy link
Copy Markdown
Contributor

Fix for #615. For those reviewing, this fix may not actually be enough.

While looking through the code, I noticed that the leader node isn't actually used, it's just checked for. After that, the stats gathered are just for the local node. So, is the current behavior correct at all?

@engelsanchez
Copy link
Copy Markdown
Contributor

Yes, you are right. It is not used. That seems to have been left behind from the original commit: 989d79a

I vote for dropping the check entirely. Thanks for looking at this!

@lordnull
Copy link
Copy Markdown
Contributor Author

The second part to the question is do we want to alter the behavior so it asks all the nodes for stats, or keep it node-local?

@lordnull
Copy link
Copy Markdown
Contributor Author

For posterity: final decision was to defer determining if local only data was valid to later. Fix the error here first (leader existence causing crash). Open a new issue to determine if we should be trying to gather all node's stats.

@engelsanchez
Copy link
Copy Markdown
Contributor

👍 39fa59f

I hit rebuild on buildbot as the eunit tests run was incomplete. I'm not sure why.

borshop added a commit that referenced this pull request Dec 19, 2014
…-leader

Added test and fix to coord_serv not giving list for status.

Reviewed-by: engelsanchez
@engelsanchez
Copy link
Copy Markdown
Contributor

@borshop merge

borshop added a commit that referenced this pull request Dec 19, 2014
…-leader

Added test and fix to coord_serv not giving list for status.

Reviewed-by: engelsanchez
@borshop borshop merged commit 39fa59f into 2.0 Dec 19, 2014
@seancribbs seancribbs deleted the bugfix/mw/snmp-stats-crash-when-no-leader branch April 1, 2015 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants