Hadoop Common
  1. Hadoop Common
  2. HADOOP-8151

Error handling in snappy decompressor throws invalid exceptions

    Details

    • 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-branch-1.0.patch
        2 kB
        Matt Foley
      2. HADOOP-8151.patch
        4 kB
        Matt Foley
      3. HADOOP-8151.patch
        5 kB
        Harsh J

        Issue Links

          Activity

          Todd Lipcon created issue -
          Matt Foley made changes -
          Field Original Value New Value
          Assignee Matt Foley [ mattf ]
          Matt Foley made changes -
          Attachment HADOOP-8151-branch-1.0.patch [ 12518827 ]
          Matt Foley made changes -
          Target Version/s 1.0.2, 0.23.3, 0.24.0 [ 12320152, 12320059, 12317652 ] 0.24.0, 0.23.3, 1.0.3 [ 12317652, 12320059, 12320248 ]
          Robert Joseph Evans made changes -
          Target Version/s 1.0.3, 0.23.3, 0.24.0 [ 12320248, 12320059, 12317652 ] 1.0.3, 2.0.0, 3.0.0 [ 12320248, 12320352, 12320357 ]
          Matt Foley made changes -
          Attachment HADOOP-8151.patch [ 12525796 ]
          Matt Foley made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Target Version/s 3.0.0, 2.0.0, 1.0.3 [ 12320357, 12320352, 12320248 ] 1.0.3, 2.0.0 [ 12320248, 12320352 ]
          Matt Foley made changes -
          Fix Version/s 1.0.3 [ 12320248 ]
          Target Version/s 2.0.0, 1.0.3 [ 12320352, 12320248 ] 1.0.3, 2.0.0 [ 12320248, 12320352 ]
          Harsh J made changes -
          Attachment HADOOP-8151.patch [ 12546191 ]
          Harsh J made changes -
          Affects Version/s 2.0.0-alpha [ 12320352 ]
          Affects Version/s 0.24.0 [ 12317652 ]
          Target Version/s 1.0.3, 2.0.0-alpha [ 12320248, 12320352 ] 2.0.3-alpha [ 12323273 ]
          Harsh J made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 2.0.3-alpha [ 12323273 ]
          Fix Version/s 3.0.0 [ 12320357 ]
          Resolution Fixed [ 1 ]
          Chris Nauroth made changes -
          Link This issue is duplicated by HADOOP-9666 [ HADOOP-9666 ]
          zhihai xu made changes -
          Link This issue is duplicated by HADOOP-12033 [ HADOOP-12033 ]
          Junping Du made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Junping Du made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Fix Version/s 2.8.0 [ 12329058 ]
          Resolution Fixed [ 1 ]
          Vinod Kumar Vavilapalli made changes -
          Labels 2.6.1-candidate
          Vinod Kumar Vavilapalli made changes -
          Fix Version/s 2.6.1 [ 12329005 ]
          Labels 2.6.1-candidate 2.6.1-candidate 2.7.2-candidate
          Vinod Kumar Vavilapalli made changes -
          Fix Version/s 2.7.2 [ 12332809 ]
          Vinod Kumar Vavilapalli made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Vinod Kumar Vavilapalli made changes -
          Fix Version/s 3.0.0 [ 12320357 ]
          Fix Version/s 2.8.0 [ 12329058 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development