You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/12/14 07:56:59 UTC

[incubator-doris] branch master updated: [improvement](log)(schema change) Add a clear memory description in the log (#7378)

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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new d9c927f  [improvement](log)(schema change) Add a clear memory description in the log (#7378)
d9c927f is described below

commit d9c927fdc6415ebdaa3af74e7a6e61ce4ba8c9e6
Author: EmmyMiao87 <52...@qq.com>
AuthorDate: Tue Dec 14 15:56:50 2021 +0800

    [improvement](log)(schema change) Add a clear memory description in the log (#7378)
    
    If the memory exceeds the limit when be generates a materialized view or schema change,
    a more detailed log about limit and configuration will be prompted..
---
 be/src/olap/schema_change.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/be/src/olap/schema_change.cpp b/be/src/olap/schema_change.cpp
index abbe839..2effb36 100644
--- a/be/src/olap/schema_change.cpp
+++ b/be/src/olap/schema_change.cpp
@@ -764,7 +764,10 @@ OLAPStatus RowBlockAllocator::allocate(RowBlock** row_block, size_t num_rows, bo
     if (_memory_limitation > 0 &&
         _mem_tracker->consumption() + row_block_size > _memory_limitation) {
         LOG(WARNING) << "RowBlockAllocator::alocate() memory exceeded. "
-                     << "m_memory_allocated=" << _mem_tracker->consumption();
+                     << "m_memory_allocated=" << _mem_tracker->consumption() << " "
+                     << "mem limit for schema change=" << _memory_limitation << " "
+                     << "You can increase the memory "
+                     << "by changing the Config.memory_limitation_per_thread_for_schema_change";
         *row_block = nullptr;
         return OLAP_SUCCESS;
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org