forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…db#93529 93214: flowinfra: create flow runner waiter goroutine as a task r=yuzefovich a=yuzefovich **distsql: always cancel running queries after flow drain wait time** This commit removes a cluster setting that determines whether the flows still running when `server.shutdown.query_wait` elapses are canceled. In 22.2 we introduced this setting with a default value of `true` (meaning to cancel long-running queries after the wait period) out of caution, but now it should be safe to remove this escape hatch and always cancel those stragglers - this was always the intention after all. Release note: None **flowinfra: create flow runner waiter goroutine as a task** This commit makes the change to create goroutine that is spun up to wait for the remote flow to finish and to clean up after it as a task on the stopper. This change allows us to fix the possible race between the server quiescing (which closes the temp engine) and the vectorized flow cleanup (which might delete its temp storage directory). Some care had to be taken to prevent some types of races: on one hand, we cannot start the flow until the new async waiter task is spun up because in that case the bug this commit is fixing is still present; on the other hand, the async task cannot block on `Flow.Wait` method until the flow is started successfully. Such a setup requires coordination between the new async task and the flow being started in the current goroutine. Fixes: cockroachdb#92504. Fixes: cockroachdb#92903. Release note: None 93471: server: set the idProvider for the system tenant r=andreimatei a=andreimatei Before this patch, servers running on behalf of the system tenant did not have their idProvider set. It seems like a good idea for all the servers to have this set, for consistency. I'm looking to use the idProvider more in the future, particularly since it's present in all ctx's. I want the system tenant to affirmatively identify itself through as such through this provider - for example when performing local RPCs. Release note: None Epic: None 93506: sql/pgwire: skip TestParseClientProvidedSessionParameters r=knz a=renatolabs Refs: cockroachdb#93469 Reason: flaky test Generated by bin/skip-test. Release justification: non-production code changes Resolves cockroachdb#93500 Epic: None Release note: None 93529: sql/execstats: fix leaked goroutine flake in TestTraceAnalyzer r=yuzefovich a=renatolabs The leaktest should run after the log.Scope.Close() call. Epic: none Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]> Co-authored-by: Andrei Matei <[email protected]> Co-authored-by: Renato Costa <[email protected]>
- Loading branch information
Showing
10 changed files
with
51 additions
and
39 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
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