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

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


The following commit(s) were added to refs/heads/master by this push:
     new d47bddf5955 Optimize the error msg while encountering memory not 
enough exception
d47bddf5955 is described below

commit d47bddf5955bd129fc8f500894f44803d0650553
Author: Jackie Tien <[email protected]>
AuthorDate: Wed Jul 10 18:30:35 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