-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
106458: sql: Fix TestCancelQueriesRace r=rafiss a=rimadeodhar TestCancelQueriesRace attempts to run two query cancellations at the same time in order to reproduce potential data race. However, it makes an invalid assumption that both query cancellations will always succeed which is not true. This PR updates the check to ensure that at least one of the query cancellations is successful. I stress tested this test locally using `./dev test ./pkg/sql -f TestCancelQueriesRace --stress --ignore-cache --cpus 16 --timeout 5m`. It ran successfully with over a 1000 successful runs. Epic: none Fixes: #105853 Release note: none 106595: changefeedccl: remove changefeed replanning r=miretskiy a=jayshrivastava This commit removes changefeed replanning functionality. Initially, this change was to improve the replanning test, which takes 10 seconds to run on average, preventing us from being able to run it under deadlock (see #101894) or stress race. It turns out that the test did not even test replanning based on range distribution, as it used the `ShouldReplan` testing knob to override replanning decisions. After some discussion with `@miretskiy,` it was decided that it would be better to remove replanning entirely for these reasons: - it's disabled by default - it's not known to be used by any major production clusters or known to show a significant performance improvement - replanning an entire changefeed on a high level is a large hammer. restarting a large changefeed this way will likely cause rows to be re-emitted which may outweigh the benefit of replanning. if we decide to add replanning, it should be more graceful. - the benefit of replanning is not clear (ie. compared to scalability improvements such as reducing CPU usage, goroutine count etc.) Epic: None Closes: #101894 Release note (enterprise change): This change reverts #83143. This removes the settings `changefeed.replan_flow_frequency` and `changefeed.replan_flow_threshold`. These settings were disabled by default and should not affect existing changefeeds in any way. Co-authored-by: rimadeodhar <[email protected]> Co-authored-by: Jayant Shrivastava <[email protected]>
- Loading branch information
Showing
6 changed files
with
11 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters