-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
The test TestLeaseGrantAndList isn't stable #13855
Comments
Yeah it looks like the client doesn't use a stable etcd server, so sometimes hits one that hasn't got the latest state. I think I need to update it with some kind of |
I'll give this a shot |
I think the problem is that we can't rely on revision to stop polling. On server side we create leases list and then get Rev.
I think there are 2 solutions:
I've submitted PR with 1 |
I think this was fixed in #13868 |
@serathius I was able to reproduce it with #13868
|
Interesting as in my case it doesn't fail even with 50 runs, when without #13868 it reproduces within couple of runs. |
IMO the core issue is getting revision at the end of LeaseLeases function It's not guaranteed that lss list actually reflects latest Revision. Maybe a better fix is to move newHeader() to the start of LeaseLeases. |
@endocrimes since you are the author of #13868, can you check my fix #13940 ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions. |
Sometimes it passes, but sometimes it fails. Use commands below to reproduce the issue.
Error log:
cc @endocrimes @kkkkun @serathius
The text was updated successfully, but these errors were encountered: