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

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new de7920d68a ARTEMIS-4191 Adding logger.debug on 
JournalImpl::needsCompact
de7920d68a is described below

commit de7920d68a6f795d2171fefe1d6611e8d0c9e96c
Author: Clebert Suconic <[email protected]>
AuthorDate: Thu Mar 2 10:00:26 2023 -0500

    ARTEMIS-4191 Adding logger.debug on JournalImpl::needsCompact
---
 .../org/apache/activemq/artemis/core/journal/impl/JournalImpl.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
 
b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
index 02eb3995fe..1f6ae936bc 100644
--- 
a/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
+++ 
b/artemis-journal/src/main/java/org/apache/activemq/artemis/core/journal/impl/JournalImpl.java
@@ -2595,6 +2595,12 @@ public class JournalImpl extends JournalBase implements 
TestableJournal, Journal
 
       boolean needCompact = totalLiveSize < compactMargin && dataFiles.length 
> compactMinFiles;
 
+      if (logger.isDebugEnabled()) {
+         logger.debug("JournalImpl::needsCompact={}, totalBytes={}, 
dataFiles.length={}, fileSize={}, compactMargin={}, compactingPercentage={}," +
+                         "compactMinFiles={}", needCompact, totalBytes, 
dataFiles.length, fileSize,
+                      compactMargin, compactPercentage, compactMinFiles);
+      }
+
       return needCompact;
 
    }

Reply via email to