Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3380

Byte reading in avro.io does not assert read bytes to requested nbytes

    XMLWordPrintableJSON

Details

    Description

      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

       

      Attachments

        Issue Links

          Activity

            People

              jjaakola-aiven Jarkko Jaakola
              jjaakola-aiven Jarkko Jaakola
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m