You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/02/09 16:49:00 UTC

[jira] [Work logged] (AVRO-3380) Byte reading in avro.io does not assert read bytes to requested nbytes

     [ https://issues.apache.org/jira/browse/AVRO-3380?focusedWorklogId=723788&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-723788 ]

ASF GitHub Bot logged work on AVRO-3380:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Feb/22 16:48
            Start Date: 09/Feb/22 16:48
    Worklog Time Spent: 10m 
      Work Description: netlify[bot] edited a comment on pull request #1529:
URL: https://github.com/apache/avro/pull/1529#issuecomment-1033971695


   ❌ Deploy Preview for *avro-website-preview* failed.
   
   
   🔨 Explore the source changes: f10214d10ebecdf14ddcaf2a9ae235246b1d9ebd
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/avro-website-preview/deploys/6203f04ba011360007831ed9](https://app.netlify.com/sites/avro-website-preview/deploys/6203f04ba011360007831ed9)
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 723788)
    Time Spent: 0.5h  (was: 20m)

> 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  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)