Hadoop Common
  1. Hadoop Common
  2. HADOOP-8151

Error handling in snappy decompressor throws invalid exceptions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 2.0.0-alpha
    • Fix Version/s: 1.0.3, 3.0.0, 2.8.0
    • Component/s: io, native
    • Labels:
      None
    • Hadoop Flags:
      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.

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Matt Foley
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development