Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
130346: server: fix race in `TestCachedSettingsServerRestart`. r=stevendanna a=shubhamdhama Before this change, we picked the expected value without waiting for all settings to be updated in the cache. This could lead to a race condition in rare cases where the settings watcher had not yet received some of the settings through rangefeed. We would assign those incomplete settings to `expectedSettingsCount`, and just before stopping the server, the settings cache would receive the remaining ones. Informs: #124419. We haven't seen this issue on the current master yet, likely due to some improvements in rangefeed performance. This fix will be backported. Epic: CRDB-38882 Release note: None Co-authored-by: Shubham Dhama <[email protected]>
- Loading branch information