Commit 417ddd0
authored
Load: fix memory leak when failed to send chunk data in first phase (apache#15518)
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.1 parent cb19f37 commit 417ddd0
File tree
1 file changed
+9
-5
lines changed- iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/scheduler/load
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
711 | | - | |
712 | | - | |
| 710 | + | |
713 | 711 | | |
714 | | - | |
715 | | - | |
716 | 712 | | |
717 | 713 | | |
718 | 714 | | |
| |||
722 | 718 | | |
723 | 719 | | |
724 | 720 | | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
725 | 729 | | |
726 | 730 | | |
727 | 731 | | |
| |||
0 commit comments