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

mck pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 487f59e66c Improve debug around paused and disabled compaction
487f59e66c is described below

commit 487f59e66c2a5baaf06b7a4560898cd137802579
Author: Mick Semb Wever <m...@apache.org>
AuthorDate: Thu Jun 27 12:16:54 2024 +0200

    Improve debug around paused and disabled compaction
    
     patch by Mick Semb Wever; reviewed by Brandon Williams, Erick Ramirez for 
CASSANDRA-19728
---
 src/java/org/apache/cassandra/db/ColumnFamilyStore.java            | 4 ++++
 src/java/org/apache/cassandra/db/compaction/CompactionManager.java | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java 
b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
index 2eff1c7242..56d64d009c 100644
--- a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
+++ b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
@@ -2894,6 +2894,10 @@ public class ColumnFamilyStore implements 
ColumnFamilyStoreMBean, Memtable.Owner
                     throw new RuntimeException(e);
                 }
             }
+            finally
+            {
+                logger.debug("Resuming compactions for {}", metadata.name);
+            }
         }
     }
 
diff --git a/src/java/org/apache/cassandra/db/compaction/CompactionManager.java 
b/src/java/org/apache/cassandra/db/compaction/CompactionManager.java
index 325878638a..09dbd872fc 100644
--- a/src/java/org/apache/cassandra/db/compaction/CompactionManager.java
+++ b/src/java/org/apache/cassandra/db/compaction/CompactionManager.java
@@ -233,7 +233,11 @@ public class CompactionManager implements 
CompactionManagerMBean, ICompactionMan
     {
         if (cfs.isAutoCompactionDisabled())
         {
-            logger.trace("Autocompaction is disabled");
+            logger.debug("Autocompaction on {}.{} is disabled (disabled: {}, 
paused: {})",
+                         cfs.keyspace.getName(), cfs.name,
+                         !cfs.getCompactionStrategyManager().isEnabled(),
+                         !cfs.getCompactionStrategyManager().isActive());
+
             return Collections.emptyList();
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to