Program: 40747
Project: 40747
Buggy source:
public static long doAdmmIteration(Configuration baseConf,Path previousHdfsPath,Path currentHdfsPath,Path signalDataLocation,int iterationNumber,boolean addIntercept,boolean regularizeIntercept,float regularizationFactor) throws IOException, ClassNotFoundException, InterruptedException {
  Configuration conf=new Configuration(baseConf);
  conf.set("String_Node_Str",previousHdfsPath.toString());
  conf.setInt("String_Node_Str",iterationNumber);
  conf.setBoolean("String_Node_Str",addIntercept);
  conf.setBoolean("String_Node_Str",regularizeIntercept);
  conf.setFloat("String_Node_Str",regularizationFactor);
  Job job=new Job(conf);
  job.setJarByClass(AdmmOptimizerDriver.class);
  job.setJobName("String_Node_Str" + iterationNumber);
  AdmmIterationInputFormat.setNumMapTasks(job,240);
  FileInputFormat.setInputPaths(job,signalDataLocation);
  FileOutputFormat.setOutputPath(job,currentHdfsPath);
  job.setInputFormatClass(AdmmIterationInputFormat.class);
  job.setOutputFormatClass(AdmmIterationOutputFormat.class);
  job.setMapOutputKeyClass(NullWritable.class);
  job.setMapOutputValueClass(AdmmReducerContextWritable.class);
  job.setOutputKeyClass(NullWritable.class);
  job.setOutputValueClass(AdmmReducerContextWritable.class);
  job.setMapperClass(AdmmIterationMapper.class);
  job.setCombinerClass(AdmmIterationCombiner.class);
  job.setReducerClass(AdmmIterationReducer.class);
  HadoopUtil.delete(conf,currentHdfsPath);
  boolean succeeded=job.waitForCompletion(true);
  if (!succeeded) {
    throw new IllegalStateException("String_Node_Str");
  }
  return job.getCounters().findCounter(AdmmIterationReducer.IterationCounter.ITERATION).getValue();
}

Fixed version (ground truth):
public static long doAdmmIteration(Configuration baseConf,Path previousHdfsPath,Path currentHdfsPath,Path signalDataLocation,int iterationNumber,boolean addIntercept,boolean regularizeIntercept,float regularizationFactor) throws IOException, ClassNotFoundException, InterruptedException {
  Configuration conf=new Configuration(baseConf);
  conf.set("String_Node_Str",previousHdfsPath.toString());
  conf.setInt("String_Node_Str",iterationNumber);
  conf.setBoolean("String_Node_Str",addIntercept);
  conf.setBoolean("String_Node_Str",regularizeIntercept);
  conf.setFloat("String_Node_Str",regularizationFactor);
  Job job=Job.getInstance(conf);
  job.setJarByClass(AdmmOptimizerDriver.class);
  job.setJobName("String_Node_Str" + iterationNumber);
  AdmmIterationInputFormat.setNumMapTasks(job,240);
  FileInputFormat.setInputPaths(job,signalDataLocation);
  FileOutputFormat.setOutputPath(job,currentHdfsPath);
  job.setInputFormatClass(AdmmIterationInputFormat.class);
  job.setOutputFormatClass(AdmmIterationOutputFormat.class);
  job.setMapOutputKeyClass(NullWritable.class);
  job.setMapOutputValueClass(AdmmReducerContextWritable.class);
  job.setOutputKeyClass(NullWritable.class);
  job.setOutputValueClass(AdmmReducerContextWritable.class);
  job.setMapperClass(AdmmIterationMapper.class);
  job.setReducerClass(AdmmIterationReducer.class);
  HadoopUtil.delete(conf,currentHdfsPath);
  boolean succeeded=job.waitForCompletion(true);
  if (!succeeded) {
    throw new IllegalStateException("String_Node_Str");
  }
  return job.getCounters().findCounter(AdmmIterationReducer.IterationCounter.ITERATION).getValue();
}