You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "yukon (JIRA)" <ji...@apache.org> on 2017/04/20 07:34:04 UTC

[jira] [Commented] (ROCKETMQ-71) remove commitlog, messagequeue bug

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

yukon commented on ROCKETMQ-71:
-------------------------------

Just add a config item in your broker config file, like this:
{code}
cleanResourceInterval=100
{code}

> remove commitlog, messagequeue bug
> ----------------------------------
>
>                 Key: ROCKETMQ-71
>                 URL: https://issues.apache.org/jira/browse/ROCKETMQ-71
>             Project: Apache RocketMQ
>          Issue Type: Bug
>            Reporter: liyinsheng
>            Assignee: vongosling
>
> there is the following code in DefaultMessageStore.java this.scheduledExecutorService.scheduleAtFixedRate(new Runnable() {
> @Override
> public void run() {
> DefaultMessageStore.this.cleanFilesPeriodically();
> }
> }, 1000 * 60, this.messageStoreConfig.getCleanResourceInterval(), TimeUnit.MILLISECONDS);
> scheduleAtFixedRate function should change to scheduleAtFixedRate because executions will commence after {@code initialDelay} then {@code initialDelay+period}, then {@code initialDelay + 2 * period}, and so on,that means executions delay time should more and more longer



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)