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

ConcurrentModificationException in LocalJobRunner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.2.0, 2.0.4-alpha
    • 1.2.0, 2.1.0-beta
    • None
    • None

    Description

      With the latest version hive unit tests fail in various places with the following stack trace. The problem seems related to: MAPREDUCE-2931

          [junit] java.util.ConcurrentModificationException
          [junit] 	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
          [junit] 	at java.util.HashMap$ValueIterator.next(HashMap.java:822)
          [junit] 	at org.apache.hadoop.mapred.Counters.incrAllCounters(Counters.java:505)
          [junit] 	at org.apache.hadoop.mapred.Counters.sum(Counters.java:528)
          [junit] 	at org.apache.hadoop.mapred.LocalJobRunner$Job.getCurrentCounters(LocalJobRunner.java:490)
          [junit] 	at org.apache.hadoop.mapred.LocalJobRunner.getJobCounters(LocalJobRunner.java:634)
          [junit] 	at org.apache.hadoop.mapred.JobClient$NetworkedJob.getCounters(JobClient.java:418)
          [junit] 	at org.apache.hadoop.hive.ql.exec.HadoopJobExecHelper$ExecDriverTaskHandle.getCounters(HadoopJobExecHelper.java:465)
          [junit] 	at org.apache.hadoop.hive.ql.exec.HadoopJobExecHelper.progress(HadoopJobExecHelper.java:300)
          [junit] 	at org.apache.hadoop.hive.ql.exec.HadoopJobExecHelper.progress(HadoopJobExecHelper.java:532)
          [junit] 	at org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:453)
          [junit] 	at org.apache.hadoop.hive.ql.exec.ExecDriver.main(ExecDriver.java:681)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [junit] 	at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
      

      Attachments

        1. MAPREDUCE-5166-branch-1.patch
          3 kB
          Sandy Ryza
        2. MAPREDUCE-5166.patch
          3 kB
          Sandy Ryza

        Issue Links

          Activity

            People

              sandyr Sandy Ryza
              hagleitn Gunther Hagleitner
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: