executor: avoid goroutine leak in TableReader along with memory leak #18057
Labels
epic/memory-management
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)
The source code only generates go routines, but not handle errors if some exceptions happens.
To to reproduce this issue using failpoint.
On the other hand, if the main thread is cancelled, those generated goroutines should stop correctly.
detail problems:
2. What did you expect to see? (Required)
all goroutine stops and return errors.
3. What did you see instead (Required)
other goroutine runs normally and occupy many memory .
4. Affected version (Required)
v4.0.x, v3
5. Root Cause Analysis
lack handing exceptions.
The text was updated successfully, but these errors were encountered: