You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "yukon (JIRA)" <ji...@apache.org> on 2017/04/20 06:47:04 UTC

[jira] [Commented] (ROCKETMQ-142) benchmark test store log warn "found a illegal magic code 0x0" . The message have any meaning ?? What does it stand for ??

    [ https://issues.apache.org/jira/browse/ROCKETMQ-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15976189#comment-15976189 ] 

yukon commented on ROCKETMQ-142:
--------------------------------

May be your commit log has been damaged.

> 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)