rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

MessageStoreConfig.maxMessageSize is 4Mb Or 512 kb?

Open stateIs0 opened this issue 8 years ago • 4 comments

The issue tracker is ONLY used for bug report and feature request. Keep in mind, please check whether there is an existing same report before your raise a new one.

Alternately (especially if your communication is not a bug report), you can send mail to our mailing lists. We welcome any friendly suggestions, bug fixes, collaboration and other improvements.

Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:

BUG REPORT

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)? look source code.
  • What did you expect to see? ...
  • What did you see instead?

// The maximum size of a single log file,default is 512K private int maxMessageSize = 1024 * 1024 * 4;

I'm a little confused for that annotation .

  1. Please tell us about your environment:

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

FEATURE REQUEST

  1. Please describe the feature you are requesting.

  2. Provide any additional detail on your proposed use case for this feature.

  3. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

  4. If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

  • sub-task1-issue-number: sub-task1 description here,
  • sub-task2-issue-number: sub-task2 description here,
  • ...

stateIs0 avatar Nov 03 '18 04:11 stateIs0

In RocketMQ,the max message size is 4M,Not 4KB!

zongtanghu avatar Nov 03 '18 07:11 zongtanghu

@zongtanghu sorry ,I did get it wrong, 1024 * 1024 * 4, but my main question was: why did the annotation write 512kb?

stateIs0 avatar Nov 03 '18 07:11 stateIs0

I think it's just a simple comment mistake.

xiangwangcheng avatar Nov 05 '18 03:11 xiangwangcheng

I think maybe the default max message in the initial release version is 512KB, and then modified to 4MB, but forgot to change the annotation. Just a comment mistake, you can propose a PR to revise it if you are interested in.

ymwneu avatar Nov 06 '18 12:11 ymwneu