Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5108 Changes needed for Binary Compatibility for MR applications via YARN
  3. MAPREDUCE-5531

Binary and source incompatibility in mapreduce.TaskID and mapreduce.TaskAttemptID between branch-1 and branch-2

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.1-beta
    • Fix Version/s: 2.2.0
    • Component/s: mrv1, mrv2
    • Labels:
      None
    • Target Version/s:

      Description

      mapreduce.TaskID in branch-1 has these two constructors:

      public TaskID(JobID jobId, boolean isMap, int id)
      public TaskID(String jtIdentifier, int jobId, boolean isMap, int id)
      

      In branch-2, mapreduce.TaskID no longer has either of the above two constructors.

      Also, mapreduce.TaskAttemptID in branch-1 has this constructor:

      public TaskAttemptID(String jtIdentifier, int jobId, boolean isMap, int taskId, int id)
      

      In branch-2, mapreduce.TaskAttemptID no longer his this constructor.

      It looks like these constructors were probably removed because the boolean isMap was replaced by an enum, TaskType.

      This means that any code that tries to use any of those constructors will not be binary or source compatible (in fact, the missing TaskAttemptID constructor calls one of the missing TaskID constructors).

        Attachments

        1. MAPREDUCE-5531.patch
          3 kB
          Robert Kanter
        2. MAPREDUCE-5531.patch
          3 kB
          Robert Kanter

          Activity

            People

            • Assignee:
              rkanter Robert Kanter
              Reporter:
              rkanter Robert Kanter
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: