Zhangyx39 commented on a change in pull request #1426: URL: https://github.com/apache/samza/pull/1426#discussion_r498413299
########## File path: samza-core/src/main/java/org/apache/samza/serializers/IntermediateMessageSerde.java ########## @@ -67,7 +67,20 @@ public IntermediateMessageSerde(Serde userMessageSerde) { public Object fromBytes(byte[] bytes) { try { final Object object; - final MessageType type = MessageType.values()[bytes[0]]; + final MessageType type; + try { + type = MessageType.values()[bytes[0]]; + } catch (ArrayIndexOutOfBoundsException e) { + // The message type was introduced in samza 0.13.1. For samza 0.13.0 or older versions, the first byte of + // MessageType doesn't exist in the bytes. Thus, upgrading from those versions will get this exception. + // There are two ways to solve this issue: + // a) Reset checkpoint or clean all messages for the intermediate topic Review comment: Makes sense. Updated. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org