Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stats for r15b02 #415

Merged
merged 1 commit into from Oct 25, 2012
Merged

Fix stats for r15b02 #415

merged 1 commit into from Oct 25, 2012

Conversation

russelldb
Copy link
Member

OTP team removed the erlang:system_info(global_heap_size) stat
and so riak-admin status and riak stats fail hard.

This commit wraps the call to said stat in a try catch. On < 15b02
you get global heapsize. Otherwise you get the atom 'deprecated'.

Addresses #411

OTP team removed the erlang:system_info(global_heap_size) stat
and so riak-admin status and riak stats fail hard.

This commit wraps the call to said stat in a try catch. On < 15b02
you get global heapsize. Otherwise you get the atom 'deprecated'.
@russelldb
Copy link
Member Author

/stats - https://gist.github.com/29b7a1dcf831ac816104
riak-admin status https://gist.github.com/f4cc51ee9c224c005aea
jmx is unaffected, that stat is not exposed
snmp is unaffected, that stat is not exposed

russelldb added a commit that referenced this pull request Oct 25, 2012
@russelldb russelldb merged commit 8e25ffa into master Oct 25, 2012
russelldb pushed a commit that referenced this pull request Nov 25, 2012
The bulk of the riak_kv_stat code was moved to a to-be deprecated
module riak_kv_stat_bc. The change that fixes memory stats for
erlang r15b02 was lost. See riak_kv PR #415 for details.
buddhisthead added a commit that referenced this pull request Nov 26, 2012
Re-instate code from #415 that was lost in later changes
@seancribbs seancribbs deleted the gh411-global-heap branch April 1, 2015 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants