Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8151

Error handling in snappy decompressor throws invalid exceptions

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      SnappyDecompressor.c has the following code in a few places:

          THROW(env, "Ljava/lang/InternalError", "Could not decompress data. Buffer length is too small.");
      

      this is incorrect, though, since the THROW macro doesn't need the "L" before the class name. This results in a ClassNotFoundException for Ljava.lang.InternalError being thrown, instead of the intended exception.

      Attachments

        1. HADOOP-8151.patch
          5 kB
          Harsh J
        2. HADOOP-8151.patch
          4 kB
          Matthew Foley
        3. HADOOP-8151-branch-1.0.patch
          2 kB
          Matthew Foley

        Issue Links

          Activity

            People

              mattf Matthew Foley
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: