Github user uce commented on a diff in the pull request: https://github.com/apache/flink/pull/3172#discussion_r97100430 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/query/netty/message/KvStateRequestSerializer.java --- @@ -377,22 +376,24 @@ public static Throwable deserializeServerFailure(ByteBuf buf) throws IOException 0, serializedKeyAndNamespace.length); - K key = keySerializer.deserialize(dis); - byte magicNumber = dis.readByte(); - if (magicNumber != 42) { - throw new IllegalArgumentException("Unexpected magic number " + magicNumber + - ". This indicates a mismatch in the key serializers used by the " + - "KvState instance and this access."); - } - N namespace = namespaceSerializer.deserialize(dis); + try { + K key = keySerializer.deserialize(dis); + byte magicNumber = dis.readByte(); + if (magicNumber != 42) { --- End diff -- This was an historic artifact of the Flink 1.1 key and namespace serialization with RocksDB. I think we can remove this completely in a different issue.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---