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

brandonwilliams pushed a commit to branch cassandra-4.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/cassandra-4.0 by this push:
     new 0c58fbb8dd Add cache type information for maximum memory usage warning 
message
0c58fbb8dd is described below

commit 0c58fbb8dd25beab4b4a81650be1ed0ec888ff66
Author: yongj <[email protected]>
AuthorDate: Wed Feb 1 07:52:35 2023 +0000

    Add cache type information for maximum memory usage warning message
    
    Patch by Yong Jiang; reviewed by brandonwilliams and smiklosovic for
    CASSANDRA-18184
---
 CHANGES.txt                                                | 1 +
 src/java/org/apache/cassandra/utils/memory/BufferPool.java | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index 5fa7bc481d..ae1135b049 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 4.0.8
+ * Add cache type information for maximum memory usage warning message 
(CASSANDRA-18184)
  * Fix NPE in fqltool dump on null value (CASSANDRA-18113)
  * Improve unit tests performance (CASSANDRA-17427)
  * Connect to listen address when own broadcast address is requested 
(CASSANDRA-18200)
diff --git a/src/java/org/apache/cassandra/utils/memory/BufferPool.java 
b/src/java/org/apache/cassandra/utils/memory/BufferPool.java
index cfa588cacb..443e9d04a1 100644
--- a/src/java/org/apache/cassandra/utils/memory/BufferPool.java
+++ b/src/java/org/apache/cassandra/utils/memory/BufferPool.java
@@ -427,8 +427,8 @@ public class BufferPool
                 {
                     if (memoryUsageThreshold > 0)
                     {
-                        noSpamLogger.info("Maximum memory usage reached ({}), 
cannot allocate chunk of {}",
-                                          readableMemoryUsageThreshold, 
READABLE_MACRO_CHUNK_SIZE);
+                        noSpamLogger.info("Maximum memory usage reached ({}) 
for {} buffer pool, cannot allocate chunk of {}",
+                                          readableMemoryUsageThreshold, name, 
READABLE_MACRO_CHUNK_SIZE);
                     }
                     return null;
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to