Commit 8ae8f28
Load: fix memory leak when failed to send chunk data in first phase (apache#15518) (apache#15542)
This commit addresses a memory leak issue in the load process by ensuring that memory usage is reduced even when the dispatch of a piece node fails. The key changes include:
- Storing the result of the dispatch call in a variable (isDispatchSuccess) before reducing memory usage.
- Deducting the memory usage prior to checking the dispatch result to avoid leaks.
- Returning false immediately after the reduction when the dispatch fails.
(cherry picked from commit 417ddd0)1 parent 777f603 commit 8ae8f28
1 file changed
Lines changed: 9 additions & 5 deletions
File tree
- iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/scheduler/load
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | | - | |
668 | | - | |
| 666 | + | |
669 | 667 | | |
670 | | - | |
671 | | - | |
672 | 668 | | |
673 | 669 | | |
674 | 670 | | |
| |||
678 | 674 | | |
679 | 675 | | |
680 | 676 | | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
681 | 685 | | |
682 | 686 | | |
683 | 687 | | |
| |||
0 commit comments