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

Local Stats cache stores error message and doesn't regenerate after a timeout or error condition [JIRA: TOOLS-81] #86

Open
mk1s opened this issue Mar 5, 2015 · 0 comments

Comments

@mk1s
Copy link
Contributor

mk1s commented Mar 5, 2015

In certain instances when Riaknostic encounters a timeout or error that satisfies the {ok, Stats} pattern match, this message is stored in the riaknostic -> local_stats environment variable. This message is returned as the current Stats output which causes Riaknostic to crash. The current workaround is to issue a application:unset_env(riaknostic, local_stats) in order to clear the cache and have the stats regenerated.

I suggest reworking https://github.com/basho/riaknostic/blob/develop/src/riaknostic_node.erl#L194 to include more specific matching so the stats cache can be cleared or regenerated under these error conditions.

@mk1s mk1s added the Bug label Mar 5, 2015
@Basho-JIRA Basho-JIRA changed the title Local Stats cache stores error message and doesn't regenerate after a timeout or error condition Local Stats cache stores error message and doesn't regenerate after a timeout or error condition [JIRA: TOOLS-81] Mar 5, 2015
@Basho-JIRA Basho-JIRA assigned seancribbs and unassigned seancribbs Mar 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants