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

2nd read on end of file gives error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.5.2
    • None
    • java
    • None

    Description

      if I read on a empty file with BinaryDecoder, I get EOF, good,

      but with the current code, if I read it again with the same decoder, I
      get a IndexOutofBoundException, not EOF.

      it seems that always giving EOF should be a more desirable behavior.

      I can see a bug in BinaryEncoder that causes this.

      more details in :

      http://mail-archives.apache.org/mod_mbox/avro-user/201108.mbox/%3CCAAnh3_9_CQqbmt4VQYZg8-iKfO4nnLPcUZbBwd4kQoAvPEKGKQ@mail.gmail.com%3E

      Attachments

        1. a.diff
          2 kB
          Yang Yang

        Activity

          People

            Unassigned Unassigned
            yangyangyyy Yang Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: