Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4696

TestMRServerPorts throws NullReferenceException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.1.2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      TestMRServerPorts throws

      java.lang.NullPointerException
          at org.apache.hadoop.mapred.TestMRServerPorts.canStartJobTracker(TestMRServerPorts.java:99)
          at org.apache.hadoop.mapred.TestMRServerPorts.testJobTrackerPorts(TestMRServerPorts.java:152)
      

      Use the JobTracker.startTracker(string, string, boolean initialize) factory method to get a pre-initialized JobTracker for the test.

      1. mapreduce-4696.patch
        0.5 kB
        Gopal V
      2. mapreduce-4696-2.patch
        1 kB
        Gopal V

        Activity

        Hide
        Gopal V added a comment -

        Potential break of test-case due to the just-in-time init conf introduced by

        https://github.com/apache/hadoop-common/commit/31476670aa3de8b553aa6345cf56c67968f9dabc

        Show
        Gopal V added a comment - Potential break of test-case due to the just-in-time init conf introduced by https://github.com/apache/hadoop-common/commit/31476670aa3de8b553aa6345cf56c67968f9dabc
        Hide
        Gopal V added a comment -

        Patch to test-case

        Show
        Gopal V added a comment - Patch to test-case
        Hide
        Matt Foley added a comment -

        Simple fix looks basically okay to me. Question: should the jt.fs.close be before or after the jt.stopTracker call?

        Show
        Matt Foley added a comment - Simple fix looks basically okay to me. Question: should the jt.fs.close be before or after the jt.stopTracker call?
        Hide
        Gopal V added a comment -

        Patch from MAPREDUCE-4698 resolves this cleanly

        Show
        Gopal V added a comment - Patch from MAPREDUCE-4698 resolves this cleanly
        Hide
        Matt Foley added a comment -

        or not.

        Show
        Matt Foley added a comment - or not.
        Hide
        Gopal V added a comment -

        Missing changeset to match MAPREDUCE-4698's patch

        Show
        Gopal V added a comment - Missing changeset to match MAPREDUCE-4698 's patch
        Hide
        Gopal V added a comment -

        Last patch was superseded by this change which was not included in the MAPREDUCE-4698 patch/commit.

        Show
        Gopal V added a comment - Last patch was superseded by this change which was not included in the MAPREDUCE-4698 patch/commit.
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12548045/mapreduce-4696-2.patch
        against trunk revision .

        -1 patch. The patch command could not apply the patch.

        Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2910//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12548045/mapreduce-4696-2.patch against trunk revision . -1 patch . The patch command could not apply the patch. Console output: https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/2910//console This message is automatically generated.
        Hide
        Siddharth Seth added a comment -

        +1. Simple enough patch. Will commit this shortly.

        Show
        Siddharth Seth added a comment - +1. Simple enough patch. Will commit this shortly.
        Hide
        Siddharth Seth added a comment -

        Committed. Thanks Gopal!

        Show
        Siddharth Seth added a comment - Committed. Thanks Gopal!
        Hide
        Matt Foley added a comment -

        Closed upon successful release of 1.1.2.

        Show
        Matt Foley added a comment - Closed upon successful release of 1.1.2.

          People

          • Assignee:
            Gopal V
            Reporter:
            Gopal V
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development