MCPcopy Create free account
hub / github.com/pingcap/tidb / handleWorkerPanic

Method handleWorkerPanic

pkg/executor/parallel_apply.go:269–278  ·  view source on GitHub ↗
(ctx context.Context, wg *sync.WaitGroup)

Source from the content-addressed store, hash-verified

267}
268
269func (e *ParallelNestedLoopApplyExec) handleWorkerPanic(ctx context.Context, wg *sync.WaitGroup) {
270 if r := recover(); r != nil {
271 err := util.GetRecoverError(r)
272 logutil.Logger(ctx).Error("parallel nested loop join worker panicked", zap.Error(err), zap.Stack("stack"))
273 e.resultChkCh <- result{nil, err}
274 }
275 if wg != nil {
276 wg.Done()
277 }
278}
279
280// fetchAllInners reads all data from the inner table and stores them in a List.
281func (e *ParallelNestedLoopApplyExec) fetchAllInners(ctx context.Context, id int) (err error) {

Callers 3

notifyWorkerMethod · 0.95
outerWorkerMethod · 0.95
innerWorkerMethod · 0.95

Calls 4

GetRecoverErrorFunction · 0.92
LoggerFunction · 0.92
ErrorMethod · 0.65
DoneMethod · 0.65

Tested by

no test coverage detected