Skip to content

[Bug] Single log file size limit failed #499

@takagi906

Description

@takagi906

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

  • What did you expect to see?

As expected, there should be 4 logs per 3M

  • What did you see instead?

Image
The size of a single file exceeds 3M

  1. Please tell us about your environment:
  • What is your OS?

macos/arm

  • What is your client version?
    latest

  • What is your RocketMQ version?
    latest

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions