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

findbugs error in ResourceLocalizationService.handle(LocalizationEvent)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0, 2.0.0-alpha
    • 0.23.0
    • mrv2
    • None

    Description

      hudson mapreduce is reporting a findbugs error:
      https://builds.apache.org/job/PreCommit-MAPREDUCE-Build/707//artifact/trunk/hadoop-mapreduce-project/patchprocess/newPatchFindbugsWarningshadoop-yarn-server-nodemanager.html

      WMI Method org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService.handle(LocalizationEvent) makes inefficient use of keySet iterator instead of entrySet iterator

      Bug type WMI_WRONG_MAP_ITERATOR (click for details)
      In class org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService
      In method org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService.handle(LocalizationEvent)
      At ResourceLocalizationService.java:[line 295]
      Another occurrence at ResourceLocalizationService.java:[line 318]

      Attachments

        1. MAPREDUCE-2985.patch
          2 kB
          Thomas Graves

        Activity

          People

            tgraves Thomas Graves
            tgraves Thomas Graves
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: