[
https://issues.apache.org/jira/browse/AVRO-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15461943#comment-15461943
]
ASF subversion and git services commented on AVRO-1888:
-------------------------------------------------------
Commit 17cfe99d72121fad1ead76e8bf80729c5c7f7e6b in avro's branch
refs/heads/master from [~rdblue]
[ https://git-wip-us.apache.org/repos/asf?p=avro.git;h=17cfe99 ]
AVRO-1888: Java: Fix single-record encoding marker check.
> 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
> Priority: Blocker
> Fix For: 1.8.2
>
> Attachments: AVRO-1888.1.patch
>
>
> 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)