apache / apache/rocketmq-client-cpp

[Bug] Single log file size limit failed

未关闭
#499 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
393
派生
167
PR 合并指标
30 天内没有已合并 PR

描述

**BUG REPORT**

1. Please describe the issue you observed:

- What did you do (The steps to reproduce)?
Taking mqAdmin as an example, when I call **SetMQAdminLogFileNumAndSize** to trigger the **setLogFileSizeAndNum** of **DefaultMQClient**, I find that the log is not sharded.

![Image](https://github.com/user-attachments/assets/3f1a1c66-fed5-4d51-915f-5d9bc83e55c5)

- What did you expect to see?

As expected, there should be 4 logs per 3M

- What did you see instead?

![Image](https://github.com/user-attachments/assets/8d07eb06-5a75-4f00-9cfc-8ca8978db8ea)
The size of a single file exceeds 3M

2. Please tell us about your environment:

- What is your OS?

macos/arm

- What is your client version?
latest

- What is your RocketMQ version?
latest

3. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

fix: use set_rotation_size function provided by boost
![Image](https://github.com/user-attachments/assets/83e9d5ef-2e26-41a7-8560-c4ec0ca3c9ab)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。