[ 
https://issues.apache.org/jira/browse/AMQ-7281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17274585#comment-17274585
 ] 

Jeff Oh commented on AMQ-7281:
------------------------------

We have also encountered this bug in production, and it was a most unwelcome 
surprise.

> 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, kahadb_scheduler.png, 
> 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.4#803005)

Reply via email to