Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-142

benchmark test store log warn "found a illegal magic code 0x0" . The message have any meaning ?? What does it stand for ??

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 4.0.0-incubating, 4.1.0-incubating
    • Fix Version/s: None
    • Component/s: rocketmq-store
    • Labels:
      None

      Description

      ./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 */); }

        Attachments

          Activity

            People

            • Assignee:
              Yukon yukon
              Reporter:
              zhaoziyan zhaoziyan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: