There is no way to use unparallel projection executor #25497
Labels
component/executor
severity/moderate
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Set
tidb_projection_concurrency
variable to 0 doesn't work, this variable is deprecated:Set variable
tidb_executor_concurrency
to 0 doesn't work, 0 is not a valid value for it:Set variable
tidb_executor_concurrency
to 1 doesn't really work,because the code requires the value less than or equal to 0:
tidb/executor/projection.go
Lines 185 to 187 in efc774a
So, when we set
tidb_executor_concurrency
to 1, we actually spawn one worker and the main goroutine is waiting for the worker to finish the job.This code branch is never covered
tidb/executor/projection.go
Line 179 in efc774a
2. What did you expect to see? (Required)
I want to make sure projection runs non-concurrently ...
3. What did you see instead (Required)
There is no way to do that.
4. What is your TiDB version? (Required)
commit efc774a (HEAD -> master, origin/master, origin/HEAD)
Author: ZhuoZhi 517770911@qq.com
Date: Wed Jun 16 15:12:37 2021 +0800
The text was updated successfully, but these errors were encountered: