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

Fix TestPigRunner in trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.12.0
    • None
    • None
    • Reviewed

    Description

      This is a regression from PIG-2924. The size of output in PigStats used to be off by 1 byte per store, but that was fixed by PIG-2924. However, two test cases in TestPigRunner wasn't corrected, so they fail in trunk.

      The reason why the size of output in PigStats were off by 1 byte per store is because the size variable was initialized by -1 instead of 0.

      long bytes = -1;
      ...
      bytes += status.getLen();
      ...
      

      Attachments

        1. PIG-3066.patch
          2 kB
          Cheolsoo Park

        Issue Links

          Activity

            People

              cheolsoo Cheolsoo Park
              cheolsoo Cheolsoo Park
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: