Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
139238: testcluster: deflake TestManualReplication r=iskettaneh a=iskettaneh When we transfer a lease from N1 to N2, N2 might not immediately know about the lease transfer, and might still think that N1 holds the lease. With leader leases however, since sometimes it takes time until store liveness grants support, the test might run into timing issues where N2 thinks that N1 has the lease, but the lease is UNUSABLE since now() is so close to the lease min_expiration time. Also, sometimes N2 can't determine the lease validity all together. This commit fixes this by wrapping the lease enquiry after the lease transfer by a succeeds soon. Couldn't reproduce the bug after more than 10,000 attempts. Fixes: #136801 Release Note: None Co-authored-by: Ibrahim Kettaneh <[email protected]>
- Loading branch information