You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "leizhiyuan (via GitHub)" <gi...@apache.org> on 2025/08/01 03:45:09 UTC
[I] [Enhancement] Optimize the process of starting recovery and update checkpoint [rocketmq]
leizhiyuan opened a new issue, #9587:
URL: https://github.com/apache/rocketmq/issues/9587
### Before Creating the Enhancement Request
- [x] I have confirmed that this should be classified as an enhancement rather than a bug/feature.
### Summary
Currently, during a recovery, especially an abnormal recovery, multiple commitlog files are scanned. If there are many commitlogs,
During this scan, it seems that checkpoints are not flushed. This can cause problems in a container environment where, if health check execution is not completed within the health check time, restarting the container will require another checkpoint, resulting in startup failures. In this case, you need to manually adjust the health check interval.
It is reasonable to flush the progress during recovery as well. This allows the container to continue without having to start over.
当前,recover 的时候,尤其是不正常 recover 的时候,扫描多个 commitlog 文件,如果 commitlog 很多,这时候,
扫描过程中,目前看 checkpoint 不会 flush,这样会导致,如果在容器环境下,在健康检查时间内没有执行完,那么重启后,又要重新执行一遍,会一直启动不了,这时候,需要手动修改健康检查的时间间隔。
合理的情况,应该是在 recover 的时候,也去 flush 这个进度。这样下次就能继续,而不用重新来
### Motivation
Same as above
### Describe the Solution You'd Like
Same as above
### Describe Alternatives You've Considered
Same as above
### Additional Context
_No response_
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Enhancement] Optimize the process of starting recovery and update checkpoint [rocketmq]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #9587:
URL: https://github.com/apache/rocketmq/issues/9587#issuecomment-3142184286
在早期的版本中,默认应该是扫描 3G,当前的实现已修改过了,这里也起到一个 CommitLog 预热的作用。
ckpt 的 min phy offset 是所有 cq 的 max offset 所指向的 phy offset 的最小值。可能要考虑一下对 ha 流程的影响
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Enhancement] Optimize the process of starting recovery and update checkpoint [rocketmq]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9587: [Enhancement] Optimize the process of starting recovery and update checkpoint
URL: https://github.com/apache/rocketmq/issues/9587
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Enhancement] Optimize the process of starting recovery and update checkpoint [rocketmq]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9587:
URL: https://github.com/apache/rocketmq/issues/9587#issuecomment-5154186379
This issue is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Enhancement] Optimize the process of starting recovery and update checkpoint [rocketmq]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9587:
URL: https://github.com/apache/rocketmq/issues/9587#issuecomment-5198954554
This issue was closed because it has been inactive for 3 days since being marked as stale.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org