You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ryan Blue (JIRA)" <ji...@apache.org> on 2016/07/24 23:10:20 UTC
[jira] [Created] (AVRO-1888) Java: Single-record encoding marker
bytes check is incorrect
Ryan Blue created AVRO-1888:
-------------------------------
Summary: Java: Single-record encoding marker bytes check is incorrect
Key: AVRO-1888
URL: https://issues.apache.org/jira/browse/AVRO-1888
Project: Avro
Issue Type: Bug
Components: java
Reporter: Ryan Blue
Assignee: Ryan Blue
Fix For: 1.8.2
It looks like the check for correct marker bytes is incorrect.
The check should validate both marker/version bytes match what is expected, but is instead this:
{code}
if (! (BinaryMessageEncoder.V1_HEADER[0] == header[0])
&& BinaryMessageEncoder.V1_HEADER[1] == header[1]) { . . . }
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)