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

DataFileStream to include the exception when reading of the magic fail

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.1
    • Component/s: None
    • Labels:
      None

      Description

      When reading the Avro file failed with

      Caused by: java.io.IOException: Not a data file.
      	at org.apache.avro.file.DataFileStream.initialize(DataFileStream.java:102)
      

      it made the debugging a bit hard since the exception causing it was swallowed and not shown to the user.

        Attachments

        1. avro-1823-v01.patch
          0.7 kB
          Koji Noguchi

          Activity

            People

            • Assignee:
              knoguchi Koji Noguchi
              Reporter:
              knoguchi Koji Noguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: