Skip to content

Commit

Permalink
Merge pull request #1 from beclab/fix/zinc-init
Browse files Browse the repository at this point in the history
abnormal termination of zinc service during queries.
  • Loading branch information
eball authored May 7, 2024
2 parents 60de293 + 3b10f89 commit 5f93e49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/workload/zinc/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ import (

func FindAdminUser(ctx context.Context, client *kubernetes.Clientset) (user, pwd string, err error) {
var server *appsv1.StatefulSet

RETRY:
server, err = client.AppsV1().StatefulSets(constants.SystemNamespace).Get(ctx, ZincServerName, metav1.GetOptions{})
if err != nil {
klog.Error("find zinc search server error, ", err)
return
// return
time.Sleep(5 * time.Second)
goto RETRY
}

var secret *corev1.Secret
Expand Down

0 comments on commit 5f93e49

Please sign in to comment.