We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869c425 commit ff2f8c4Copy full SHA for ff2f8c4
executor/analyze.go
@@ -355,6 +355,8 @@ func (e *AnalyzeExec) handleResultsError(
355
resultsCh <-chan *statistics.AnalyzeResults,
356
) error {
357
partitionStatsConcurrency := e.Ctx().GetSessionVars().AnalyzePartitionConcurrency
358
+ // the concurrency of handleResultsError cannot be more than partitionStatsConcurrency
359
+ partitionStatsConcurrency = min(concurrency, partitionStatsConcurrency)
360
// If partitionStatsConcurrency > 1, we will try to demand extra session from Domain to save Analyze results in concurrency.
361
// If there is no extra session we can use, we will save analyze results in single-thread.
362
if partitionStatsConcurrency > 1 {
0 commit comments