You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Timothy Bish (Jira)" <ji...@apache.org> on 2019/08/21 14:48:00 UTC

[jira] [Updated] (AMQ-7281) KahaDB Scheduler log files not being deleted

     [ https://issues.apache.org/jira/browse/AMQ-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish updated AMQ-7281:
------------------------------
    Issue Type: New Feature  (was: Bug)

> KahaDB Scheduler log files not being deleted
> --------------------------------------------
>
>                 Key: AMQ-7281
>                 URL: https://issues.apache.org/jira/browse/AMQ-7281
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: KahaDB
>    Affects Versions: 5.15.4, 5.15.9
>         Environment: RHEL 7.6 x86_64
> jdk1.8.0_172
>            Reporter: Sergiy Dryga
>            Priority: Minor
>         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)