schnell18 opened a new issue #3257:
URL: https://github.com/apache/rocketmq/issues/3257
**BUG REPORT**
1. Please describe the issue you observed:
- What did you do?
Create an empty file under $storePathCommitLog directory. Say, you have
commit log store under /data0/rocketmq/commitlogs/,
then you create a file named 'the-bad-empty-file-fails-rocketmq-startup".
Restart broker.
Then the broker will not be able to startup normal.
You may see error message like "the-bad-empty-file-fails-rocketmq-startup 0
length not matched message store value. please check it manually" in the
storeerror.log.
- What did you expect to see?
Even in this case, RocketMQ broker should startup normally and log a warning
message.
- What did you see instead?
RocketMQ broker does not startup and does not explain the reason clearly.
2. Please tell us about your environment:
It's an ordinary CentOS 7.5 running Intel x86 chip on bare metal.
3. Other information (e.g. detailed explanation, logs, related issues,
suggestions how to fix, etc):
This suggestion is to ignore file length is not same as mappedFileSize which
is 1G by default. Log a warning and continue to start.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]