You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Sergiy Dryga (Jira)" <ji...@apache.org> on 2019/08/21 14:32:00 UTC
[jira] [Created] (AMQ-7281) KahaDB Scheduler log files not being
deleted
Sergiy Dryga created AMQ-7281:
---------------------------------
Summary: KahaDB Scheduler log files not being deleted
Key: AMQ-7281
URL: https://issues.apache.org/jira/browse/AMQ-7281
Project: ActiveMQ
Issue Type: Bug
Components: KahaDB
Affects Versions: 5.15.9, 5.15.4
Environment: RHEL 7.6 x86_64
jdk1.8.0_172
Reporter: Sergiy Dryga
Attachments: kahadb_log_1.txt, scheduler_log_1.txt
Dear Support Team!
I faced with a problem with KahaDB Scheduler, it doesn't delete old log files. It looks similar to previously reported issue AMQ-6152, see 'scheduler_log_1.txt'. But after testing I noticed that it's not the same problem, KahaDB Scheduler deletes not used files well.
Investigation also showed that the most old file contains pending message, it's ok. But there are a lot of files without any panding messages. I assumed that it contains ACK and added enableAckCompaction="true" and compactAcksIgnoresStoreGrowth="true" to the config:
<persistenceAdapter>
<kahaDB
directory="${activemq.data}/static-broker/kahadb"
journalMaxFileLength="1mb"
cleanupInterval="60000"
enableIndexWriteAsync="true"
journalDiskSyncStrategy="never"
enableAckCompaction="true"
compactAcksIgnoresStoreGrowth="true"
indexCacheSize="100000"
indexWriteBatchSize="5000"
checkForCorruptJournalFiles="true"
ignoreMissingJournalfiles="true" />
</persistenceAdapter>
And yes, it looks like KahaDB started to move ACK, see 'kahadb_log_1.txt'.
But it doesn't work with KahaDB Scheduler, it's not possible to specify ACK compaction options in 'jobSchedulerStore' config section:
<jobSchedulerStore>
<bean xmlns="http://www.springframework.org/schema/beans" id="jobSchedulerStore" class="org.apache.activemq.store.kahadb.scheduler.JobSchedulerStoreImpl">
<property name="directory" value="${activemq.data}/static-broker/scheduler" />
<property name="journalMaxFileLength" value="1000000"/>
</bean>
</jobSchedulerStore>
How is it possible to solve this problem?
--
This message was sent by Atlassian Jira
(v8.3.2#803003)