This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 156e5fa9 [horus] Completion of self-healing function test completed
(#443)
156e5fa9 is described below
commit 156e5fa9aaa176fb23673b6dc475cbe097c24bcf
Author: mfordjody <[email protected]>
AuthorDate: Wed Oct 9 11:15:48 2024 +0800
[horus] Completion of self-healing function test completed (#443)
---
app/horus/cmd/main.go | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/app/horus/cmd/main.go b/app/horus/cmd/main.go
index f67786a4..ef6f8a38 100644
--- a/app/horus/cmd/main.go
+++ b/app/horus/cmd/main.go
@@ -126,11 +126,13 @@ func main() {
return nil
})
group.Add(func() error {
- klog.Info("horus node downtime restart manager start success.")
- err := horus.DowntimeRestartManager(ctx)
- if err != nil {
- klog.Errorf("horus node downtime restart manager start
failed err:%v", err)
- return err
+ if c.NodeDownTime.Enabled {
+ klog.Info("horus node downtime restart manager start
success.")
+ err := horus.DowntimeRestartManager(ctx)
+ if err != nil {
+ klog.Errorf("horus node downtime restart
manager start failed err:%v", err)
+ return err
+ }
}
return nil
})