apache / apache/doris-operator

Context deadline exceeded

オープン
#246 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
138
フォーク
72
平均マージ
5日 12時間
マージ済み PR(30日)
3

説明

Hi,I deployed only one node doris-operator(version 1.6.0) in k8s,and sometimes doris-operator would restart,the error as below:

E0914 01:56:25.370009 1 leaderelection.go:330] error retrieving resource lock grass-roots-wannian/e1370669.selectdb.com: Get "https://10.68.0.1:443/apis/coordination.k8s.io/v1/namespaces/grass-roots-wannian/leases/e1370669.selectdb.com": context deadline exceeded
I0914 01:56:25.370168 1 leaderelection.go:283] failed to renew lease grass-roots-wannian/e1370669.selectdb.com: timed out waiting for the condition
2024-09-14T01:56:25Z INFO Stopping and waiting for non leader election runnables
2024-09-14T01:56:25Z INFO Stopping and waiting for leader election runnables
2024-09-14T01:56:25Z INFO Stopping and waiting for caches
2024-09-14T01:56:25Z INFO Stopping and waiting for webhooks
2024-09-14T01:56:25Z INFO Wait completed, proceeding to shutdown the manager
2024-09-14T01:56:25Z INFO Shutdown signal received, waiting for all workers to finish {"controller": "doriscluster", "controllerGroup": "doris.selectdb.com", "controllerKind": "DorisCluster"}
2024-09-14T01:56:25Z INFO All workers finished {"controller": "doriscluster", "controllerGroup": "doris.selectdb.com", "controllerKind": "DorisCluster"}
2024-09-14T01:56:25Z DEBUG events doris-operator-5bfbffc6fd-jkv87_80c6fd10-a3a6-460b-86c6-79a92d37009b stopped leading {"type": "Normal", "object": {"kind":"Lease","namespace":"grass-roots-wannian","name":"e1370669.selectdb.com","uid":"9370b444-e38a-44ff-8c77-6420d2e72243","apiVersion":"coordination.k8s.io/v1","resourceVersion":"12311346"}, "reason": "LeaderElection"}
2024-09-14T01:56:25Z ERROR setup problem running manager {"error": "leader election lost"}
main.main
/workspace/cmd/operator/main.go:155
runtime.main
/usr/local/go/src/runtime/proc.go:250

Would you please help me to check it,I have no idea,thanks!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

cmd/operator/main.go:155 から始め、leader election を失った後に示されるシャットダウンパスを確認してください。報告された context deadline exceeded を再現または調査し、single operator が再起動する理由を特定してください。原因を文書化し、検証済みの修正または明確な次のステップを提示できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go, kubernetes
領域
devops, infrastructure
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。