Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-3344

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0, 0.22.0, 0.23.0, 0.23.1, 2.0.0-alpha
    • 0.23.1
    • None

    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();
      

      Attachments

        1. MAPREDUCE-3344-1.patch
          2 kB
          Brock Noland

        Activity

          People

            brocknoland Brock Noland
            brocknoland Brock Noland
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: