We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please answer these questions before submitting your issue. Thanks!
Here is the TiDB's goroutine bb.txt
N/A
master
The text was updated successfully, but these errors were encountered:
func (e *AnalyzeExec) handleResultsErrorWithConcurrency( buildStatsConcurrency int, saveStatsConcurrency int, needGlobalStats bool, globalStatsMap globalStatsMap, resultsCh <-chan *statistics.AnalyzeResults, ) error { statsHandle := domain.GetDomain(e.Ctx()).StatsHandle() wg := util.NewWaitGroupPool(e.gp) saveResultsCh := make(chan *statistics.AnalyzeResults, saveStatsConcurrency) errCh := make(chan error, saveStatsConcurrency) enableAnalyzeSnapshot := e.Ctx().GetSessionVars().EnableAnalyzeSnapshot logutil.BgLogger().Info("start analyze save stats worker", zap.Int("saveStatsConcurrency", saveStatsConcurrency)) for i := 0; i < saveStatsConcurrency; i++ { worker := newAnalyzeSaveStatsWorker(saveResultsCh, errCh, &e.Ctx().GetSessionVars().SQLKiller) ctx1 := kv.WithInternalSourceType(context.Background(), kv.InternalTxnStats) wg.Run(func() { worker.run(ctx1, statsHandle, enableAnalyzeSnapshot) }) }
log:
TiDB 127.0.0.1:4000[analyze.go:417] ["start analyze save stats worker"] [saveStatsConcurrency=0]
Sorry, something went wrong.
hawkingrei
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reprod
Here is the TiDB's goroutine
bb.txt
2. What did you expect to see? (Required)
N/A
3. What did you see instead (Required)
N/A
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: