frankjkelly opened a new issue #9960: URL: https://github.com/apache/pulsar/issues/9960
**Describe the bug** Monitoring the GarbageCollectorThread in the Bookie it is running but although configured to run Major compaction every 2 hours and Minor compaction every 20 minutes neither has occurred for several days **To Reproduce** Compaction Related settings ``` # grep -i ompact bookkeeper.conf | grep -v "#" compactionRate=1000 minorCompactionThreshold=0.95 minorCompactionInterval=1200 compactionMaxOutstandingRequests=100000 majorCompactionThreshold=1.0 majorCompactionInterval=7200 compactionRateByEntries=1000 compactionRateByBytes=1000000 ``` but we only saw the Enter major compaction log line twice in the last 3 days according to Sumo (see image)  The GarbageCollectorThread does appear to be still running however ``` platform-pulsar-bookkeeper-0 platform-pulsar-bookkeeper 13:00:20.504 [GarbageCollectorThread-11-1] INFO org.apache.bookkeeper.bookie.EntryLogCompactor - Removing entry log 2198 after compaction platform-pulsar-bookkeeper-0 platform-pulsar-bookkeeper 13:00:20.600 [GarbageCollectorThread-11-1] INFO org.apache.bookkeeper.bookie.GarbageCollectorThread - Removing entry log metadata for 2198 platform-pulsar-bookkeeper-0 platform-pulsar-bookkeeper 13:04:00.379 [GarbageCollectorThread-11-1] INFO org.apache.bookkeeper.bookie.EntryLogManagerBase - Creating a new entry log file : createNewLog = false, reachEntryLogLimit = true platform-pulsar-bookkeeper-0 platform-pulsar-bookkeeper 13:04:00.379 [GarbageCollectorThread-11-1] INFO org.apache.bookkeeper.bookie.EntryLogManagerBase - Flushing entry logger 2636 back to filesystem, pending for syncing entry loggers : [BufferedChannel{logId=2636, logFile=data/bookkeeper/ledgers/current/a4c.log, ledgerIdAssigned=-1}]. platform-pulsar-bookkeeper-0 platform-pulsar-bookkeeper 13:06:34.287 [GarbageCollectorThread-11-1] INFO org.apache.bookkeeper.bookie.EntryLogCompactor - Removing entry log 2142 after compaction platform-pulsar-bookkeeper-0 platform-pulsar-bookkeeper 13:06:34.320 [GarbageCollectorThread-11-1] INFO org.apache.bookkeeper.bookie.GarbageCollectorThread - Removing entry log metadata for 2142 ``` Just wondering why if the thread is still running why it isn't doing a major (or minor) collection? **Expected behavior** GarbageCollectorThread runs compaction or perhaps logs why compaction delayed or deferred. **Additional context** Environment: Apache Pulsar 2.6.1 with Kafkaesque Helm charts version 1.0.24 on Kubernetes ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
