You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "zhaoziyan (JIRA)" <ji...@apache.org> on 2017/03/14 03:26:41 UTC
[jira] [Created] (ROCKETMQ-142) benchmark test store log warn
"found a illegal magic code 0x0" . The message have any meaning ?? What
does it stand for ??
zhaoziyan created ROCKETMQ-142:
----------------------------------
Summary: benchmark test store log warn "found a illegal magic code 0x0" . The message have any meaning ?? What does it stand for ??
Key: ROCKETMQ-142
URL: https://issues.apache.org/jira/browse/ROCKETMQ-142
Project: Apache RocketMQ
Issue Type: Test
Components: rocketmq-store
Affects Versions: 4.0.0-incubating, 4.1.0-incubating
Reporter: zhaoziyan
Assignee: yukon
./store.log:2017-03-13 20:00:49 WARN main - found a illegal magic code 0x0
./store.log:2017-03-13 20:06:53 WARN main - found a illegal magic code 0x0
Here is the code
public DispatchRequest checkMessageAndReturnSize(java.nio.ByteBuffer byteBuffer, final boolean checkCRC, final boolean readBody) {
try {
// 1 TOTAL SIZE
int totalSize = byteBuffer.getInt();
// 2 MAGIC CODE
int magicCode = byteBuffer.getInt();
switch (magicCode) {
case MESSAGE_MAGIC_CODE:
break;
case BLANK_MAGIC_CODE:
return new DispatchRequest(0, true /* success */);
default:
log.warn("found a illegal magic code 0x" + Integer.toHexString(magicCode));
return new DispatchRequest(-1, false /* success */);
}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)