-
Notifications
You must be signed in to change notification settings - Fork 25
feat(autoheal): Add autoheal callback #210
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| %%-------------------------------------------------------------------- | ||
| %% Copyright (c) 2019-2023 EMQ Technologies Co., Ltd. All Rights Reserved. | ||
| %% Copyright (c) 2019-2026 EMQ Technologies Co., Ltd. All Rights Reserved. | ||
| %% | ||
| %% Licensed under the Apache License, Version 2.0 (the "License"); | ||
| %% you may not use this file except in compliance with the License. | ||
|
|
@@ -142,8 +142,10 @@ coordinator([Majority | _]) -> | |
| heal_partition([[_Majority]]) -> | ||
| %% There are no partitions: | ||
| ok; | ||
| heal_partition([_Majority|Minorities]) -> | ||
| reboot_minority(lists:append(Minorities)). | ||
| heal_partition([Majority|Minorities]) -> | ||
| Result = reboot_minority(lists:append(Minorities)), | ||
| mria_lib:exec_callback(heal_partition, {Majority, Minorities}), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: add a comment to doc that the callback result is discarded.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is pretty much the case with all mria callbacks. |
||
| Result. | ||
|
|
||
| reboot_minority(Minority) -> | ||
| ?tp(info, "Rebooting minority", #{nodes => Minority}), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.