-
Notifications
You must be signed in to change notification settings - Fork 351
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
Timeout when debugging the operator locally #2315
Comments
Out of curiosity, what IDE do you use? I've been facing that issue as well with Goland, though my understanding is that rather an issue with it not running other Go routines while one is being stepped. In my case, I step into the reconcile loop routine, and the routine that refresh the Lease used for leader election is also blocked. |
I use VSCode for Go. From the logs, it seems the issue arrise when debugging for more than 15 seconds which is the default LeaseDuration. I think this issue describes the problem in the Go debugger. From the comment section, it seems like a difficult fix |
Thanks, that looks like the issue. It's likely Goland uses Delve as well. |
Operator exits with message
Failed to update lock: rate: Wait(n=1) would exceed context deadline
and stopping on a breakpoint for too longThe text was updated successfully, but these errors were encountered: