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

o.a.h.mapreduce.Reducer since 0.21 blindly casts to ReduceContext.ValueIterator

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0, 0.22.0, 0.23.0, 0.23.1, 2.0.0-alpha
    • Fix Version/s: 0.23.1
    • Component/s: None
    • Labels:

      Description

      0.21 mapreduce.Reducer introduced a blind cast to ReduceContext.ValueIterator. There should an instanceof check around this block to ensure we don't throw a CastClassException:

             // If a back up store is used, reset it
            ((ReduceContext.ValueIterator)
                (context.getValues().iterator())).resetBackupStore();
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Brock Noland
            Reporter:
            Brock Noland
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development