Commit b89e4aa
Merge #159541
159541: catalog/lease: fix race condition against rangefeed start r=fqazi a=fqazi
Previously, it was possible for the lease manager range feed to start tracking updates later then when we started handing out leases. This was possible because no timestamp was provided to the range feed, so the server would select the start time, when the request was processed. This meant there was a small timing window during which updates to descriptors could be lost, which could happen within test scenarios. To address this, this patch explicitly selects the current time to start the range feed to avoid risk of missing updates.
Fixes: #158328
Release note: None
Co-authored-by: Faizan Qazi <[email protected]>1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2826 | 2826 | | |
2827 | 2827 | | |
2828 | 2828 | | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
2829 | 2836 | | |
2830 | 2837 | | |
2831 | 2838 | | |
2832 | 2839 | | |
2833 | | - | |
| 2840 | + | |
2834 | 2841 | | |
2835 | 2842 | | |
2836 | 2843 | | |
| |||
0 commit comments