Avro
  1. Avro
  2. AVRO-882

2nd read on end of file gives error

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.2
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      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

      1. a.diff
        2 kB
        Yang Yang

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Yang Yang
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development