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

[leo_storage] watchdog for slow processing/timeout always enabled #912

Closed
mocchira opened this issue Oct 27, 2017 · 1 comment
Closed

[leo_storage] watchdog for slow processing/timeout always enabled #912

mocchira opened this issue Oct 27, 2017 · 1 comment

Comments

@mocchira
Copy link
Member

Also no error log is dumped even when it's fired.

TODO

  • make it configurable through leo_storage.conf
  • dump error log when it's fired
@mocchira
Copy link
Member Author

mocchira commented Nov 2, 2017

turned out that just disabling leo_storage_watchdog_msgs cause erlang to crash in case timeout/slow operation(s) keep happening because the accumulated messages stored in leo_storage_msg_collector never be freed.
https://github.com/leo-project/leofs/blob/develop/apps/leo_storage/src/leo_storage_watchdog_msgs.erl#L161 leo_storage_msg_collector:clear/0 should be called not at leo_storage_watchdog_msgs but some other place like leo_storage_msg_collector itself by timer:send_after

mocchira added a commit to mocchira/leofs that referenced this issue Nov 7, 2017
mocchira added a commit to mocchira/leofs that referenced this issue Nov 7, 2017
@mocchira mocchira closed this as completed Nov 8, 2017
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

1 participant