apache / kvrocks-controller

Apache Kvrocks Controller is a cluster management tool for Apache Kvrocks.
https://kvrocks.apache.org/
Apache License 2.0
78 stars 42 forks source link

A dead loop happened when session's lease not exist. #177

Open greatsharp opened 1 month ago

greatsharp commented 1 month ago

https://github.com/apache/kvrocks-controller/blob/105f280ef6f5ecfe13340a7b0e4cb13790260cdf/store/engine/etcd/etcd.go#L240

suggest to check err if errors.Is(err, rpctypes.ErrLeaseNotFound) { goto reset } else { continue }

git-hulk commented 1 month ago

@greatsharp Thanks for your report, would you like to submit a PR to resolve this?