Skip to content
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

Closed
johnpoth opened this issue May 21, 2021 · 3 comments · Fixed by #2316
Closed

Timeout when debugging the operator locally #2315

johnpoth opened this issue May 21, 2021 · 3 comments · Fixed by #2316
Labels
kind/task General activity

Comments

@johnpoth
Copy link
Member

Operator exits with message Failed to update lock: rate: Wait(n=1) would exceed context deadline and stopping on a breakpoint for too long

@astefanutti
Copy link
Member

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.

@johnpoth
Copy link
Member Author

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

@astefanutti
Copy link
Member

Thanks, that looks like the issue. It's likely Goland uses Delve as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task General activity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants