This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch OptMemoryNotEnoughMsg
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 0e735176985ea613bfa7e51b11c81500aeab5b14
Author: JackieTien97 <[email protected]>
AuthorDate: Wed Jul 10 16:29:01 2024 +0800

    Optimize the error msg while encountering memory not enough exception
---
 .../iotdb/db/queryengine/plan/planner/LocalExecutionPlanner.java     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/LocalExecutionPlanner.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/LocalExecutionPlanner.java
index 8d9410f92c0..1f02e3bb81f 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/LocalExecutionPlanner.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/LocalExecutionPlanner.java
@@ -246,8 +246,9 @@ public class LocalExecutionPlanner {
           String.format(
               "There is not enough memory for Query %s, the contextHolder is 
%s,"
                   + "current remaining free memory is %dB, "
-                  + "reserved memory for this context in total is %dB.",
-              queryId, contextHolder, freeMemoryForOperators, reservedBytes));
+                  + "already reserved memory for this context in total is %dB, 
"
+                  + "the memory requested this time is %dB",
+              queryId, contextHolder, freeMemoryForOperators, reservedBytes, 
memoryInBytes));
     } else {
       freeMemoryForOperators -= memoryInBytes;
       if (LOGGER.isDebugEnabled()) {

Reply via email to