Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-80

Stacktrace information is lost at MapReduceLauncher.java:289

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.1.0
    • 0.1.0
    • impl
    • None
    • Patch Available

    Description

      ...
      }catch (Exception e) {
          // Do we need different handling for different exceptions
          e.printStackTrace();
          throw new IOException(e.getMessage());
      }finally{ ...
      

      in my case the sandard output is redirtected to /dev/null so "e.printStackTrace();" is lost.

      it should be :

      throw new IOException(e);

      no getMessage() because we loose the rest of the stacktrace

      Attachments

        1. PIG-80-v06-unit-test-only.patch
          2 kB
          Benjamin Francisoud
        2. PIG-80-v05.patch
          40 kB
          Benjamin Reed
        3. PIG-80-v04.patch
          6 kB
          Benjamin Francisoud
        4. PIG-80-v03.patch
          0.9 kB
          Benjamin Francisoud
        5. PIG-80-v02.patch
          0.8 kB
          Benjamin Francisoud
        6. PIG-80-v01.patch
          0.6 kB
          Benjamin Francisoud
        7. PIG-80-generics.patch
          3 kB
          Benjamin Francisoud

        Issue Links

          Activity

            People

              francisoud Benjamin Francisoud
              francisoud Benjamin Francisoud
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: