[ 
https://issues.apache.org/jira/browse/AVRO-3380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ryan Skraba reassigned AVRO-3380:
---------------------------------

    Assignee: Jarkko Jaakola

Cherry-picked to 
[branch-1.11|https://github.com/apache/avro/commit/a9de24e44874642c114593ca0e4122954505dd2b].
  Thanks for this contribution!

> Byte reading in avro.io does not assert read bytes to requested nbytes
> ----------------------------------------------------------------------
>
>                 Key: AVRO-3380
>                 URL: https://issues.apache.org/jira/browse/AVRO-3380
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.11.0
>            Reporter: Jarkko Jaakola
>            Assignee: Jarkko Jaakola
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.11.1
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> The Python 3 compatibility layer in version 1.10.0 asserted the number of 
> read bytes to match the requested number.
> In version 1.11.0 the read returns what is available and just progresses. 
> This can be problem when having incompatible schemas or some other unexpected 
> condition.
> 1.10.0 implementation: 
> [https://github.com/apache/avro/blob/release-1.10.0/lang/py3/avro/io.py#L158]
> 1.11.0 implementation: 
> [https://github.com/apache/avro/blob/443614c12a15bb58fcf2487eb67ca6f885a68f96/lang/py/avro/io.py#L225]
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to