You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2024/07/10 08:29:16 UTC

(iotdb) branch OptMemoryNotEnoughMsg created (now 0e735176985)

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

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


      at 0e735176985 Optimize the error msg while encountering memory not enough exception

This branch includes the following new commits:

     new 0e735176985 Optimize the error msg while encountering memory not enough exception

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(iotdb) 01/01: Optimize the error msg while encountering memory not enough exception

Posted by ja...@apache.org.
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 <ja...@gmail.com>
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()) {