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

PigLogger/PigStatusReporter is not set for fetch tasks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • None

    Description

      PigLogger initialization is missing which leads to NPE if counters are accessed during a fetch tasks. Some queries to reproduce this issue:

      1.

      set opt.fetch true;
      A = load ...
      B = foreach A generate TOBAG(TOTUPLE(null));
      dump B;
      

      -> NPE when PigWarning.SKIP_UDF_CALL_FOR_NULL is incremented

      2.

      set opt.fetch true;
      set pig.udf.profile true;
      
      A = load ...
      B = foreach A generate [any UDF]
      

      -> NPE when POUserFunc.INVOCATION_COUNTER is incremented

      Attachments

        1. PIG-3858.patch
          6 kB
          Lorand Bendig

        Issue Links

          Activity

            People

              lbendig Lorand Bendig
              lbendig Lorand Bendig
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: