Program: 17276
Project: 17276
Buggy source:
@Private public void initialize(TezOutputContext outputContext,Configuration conf,int numOutputs) throws IOException {
  this.outputContext=outputContext;
  this.conf=conf;
  this.partitions=numOutputs;
  rfs=((LocalFileSystem)FileSystem.getLocal(this.conf)).getRaw();
  int reqMemory=this.conf.getInt(TezJobConfig.TEZ_RUNTIME_IO_SORT_MB,TezJobConfig.DEFAULT_TEZ_RUNTIME_IO_SORT_MB);
  long reqBytes=reqMemory << 20;
  outputContext.requestInitialMemory(reqBytes,this);
  LOG.info("String_Node_Str" + reqMemory);
  sorter=ReflectionUtils.newInstance(this.conf.getClass(TezJobConfig.TEZ_RUNTIME_INTERNAL_SORTER_CLASS,QuickSort.class,IndexedSorter.class),this.conf);
  comparator=ConfigUtils.getIntermediateOutputKeyComparator(this.conf);
  keyClass=ConfigUtils.getIntermediateOutputKeyClass(this.conf);
  valClass=ConfigUtils.getIntermediateOutputValueClass(this.conf);
  serializationFactory=new SerializationFactory(this.conf);
  keySerializer=serializationFactory.getSerializer(keyClass);
  valSerializer=serializationFactory.getSerializer(valClass);
  mapOutputByteCounter=outputContext.getCounters().findCounter(TaskCounter.MAP_OUTPUT_BYTES);
  mapOutputRecordCounter=outputContext.getCounters().findCounter(TaskCounter.MAP_OUTPUT_RECORDS);
  fileOutputByteCounter=outputContext.getCounters().findCounter(TaskCounter.MAP_OUTPUT_MATERIALIZED_BYTES);
  spilledRecordsCounter=outputContext.getCounters().findCounter(TaskCounter.SPILLED_RECORDS);
  if (ConfigUtils.shouldCompressIntermediateOutput(this.conf)) {
    Class<? extends CompressionCodec> codecClass=ConfigUtils.getIntermediateOutputCompressorClass(this.conf,DefaultCodec.class);
    codec=ReflectionUtils.newInstance(codecClass,this.conf);
  }
 else {
    codec=null;
  }
  this.ifileReadAhead=this.conf.getBoolean(TezJobConfig.TEZ_RUNTIME_IFILE_READAHEAD,TezJobConfig.TEZ_RUNTIME_IFILE_READAHEAD_DEFAULT);
  if (this.ifileReadAhead) {
    this.ifileReadAheadLength=conf.getInt(TezJobConfig.TEZ_RUNTIME_IFILE_READAHEAD_BYTES,TezJobConfig.TEZ_RUNTIME_IFILE_READAHEAD_BYTES_DEFAULT);
  }
 else {
    this.ifileReadAheadLength=0;
  }
  this.ifileBufferSize=conf.getInt("String_Node_Str",TezJobConfig.TEZ_RUNTIME_IFILE_BUFFER_SIZE_DEFAULT);
  mapOutputFile=TezRuntimeUtils.instantiateTaskOutputManager(conf,outputContext);
  LOG.info("String_Node_Str" + conf.get(TezJobConfig.TEZ_RUNTIME_PARTITIONER_CLASS) + "String_Node_Str");
  this.conf.setInt(TezJobConfig.TEZ_RUNTIME_NUM_EXPECTED_PARTITIONS,this.partitions);
  this.partitioner=TezRuntimeUtils.instantiatePartitioner(this.conf);
  this.combiner=TezRuntimeUtils.instantiateCombiner(this.conf,outputContext);
}

Fixed version (ground truth):
@Private public void initialize(TezOutputContext outputContext,Configuration conf,int numOutputs) throws IOException {
  this.outputContext=outputContext;
  this.conf=conf;
  this.partitions=numOutputs;
  rfs=((LocalFileSystem)FileSystem.getLocal(this.conf)).getRaw();
  initialMemRequestMb=this.conf.getInt(TezJobConfig.TEZ_RUNTIME_IO_SORT_MB,TezJobConfig.DEFAULT_TEZ_RUNTIME_IO_SORT_MB);
  Preconditions.checkArgument(initialMemRequestMb != 0,"String_Node_Str");
  long reqBytes=initialMemRequestMb << 20;
  outputContext.requestInitialMemory(reqBytes,this);
  LOG.info("String_Node_Str" + initialMemRequestMb);
  sorter=ReflectionUtils.newInstance(this.conf.getClass(TezJobConfig.TEZ_RUNTIME_INTERNAL_SORTER_CLASS,QuickSort.class,IndexedSorter.class),this.conf);
  comparator=ConfigUtils.getIntermediateOutputKeyComparator(this.conf);
  keyClass=ConfigUtils.getIntermediateOutputKeyClass(this.conf);
  valClass=ConfigUtils.getIntermediateOutputValueClass(this.conf);
  serializationFactory=new SerializationFactory(this.conf);
  keySerializer=serializationFactory.getSerializer(keyClass);
  valSerializer=serializationFactory.getSerializer(valClass);
  mapOutputByteCounter=outputContext.getCounters().findCounter(TaskCounter.MAP_OUTPUT_BYTES);
  mapOutputRecordCounter=outputContext.getCounters().findCounter(TaskCounter.MAP_OUTPUT_RECORDS);
  fileOutputByteCounter=outputContext.getCounters().findCounter(TaskCounter.MAP_OUTPUT_MATERIALIZED_BYTES);
  spilledRecordsCounter=outputContext.getCounters().findCounter(TaskCounter.SPILLED_RECORDS);
  if (ConfigUtils.shouldCompressIntermediateOutput(this.conf)) {
    Class<? extends CompressionCodec> codecClass=ConfigUtils.getIntermediateOutputCompressorClass(this.conf,DefaultCodec.class);
    codec=ReflectionUtils.newInstance(codecClass,this.conf);
  }
 else {
    codec=null;
  }
  this.ifileReadAhead=this.conf.getBoolean(TezJobConfig.TEZ_RUNTIME_IFILE_READAHEAD,TezJobConfig.TEZ_RUNTIME_IFILE_READAHEAD_DEFAULT);
  if (this.ifileReadAhead) {
    this.ifileReadAheadLength=conf.getInt(TezJobConfig.TEZ_RUNTIME_IFILE_READAHEAD_BYTES,TezJobConfig.TEZ_RUNTIME_IFILE_READAHEAD_BYTES_DEFAULT);
  }
 else {
    this.ifileReadAheadLength=0;
  }
  this.ifileBufferSize=conf.getInt("String_Node_Str",TezJobConfig.TEZ_RUNTIME_IFILE_BUFFER_SIZE_DEFAULT);
  mapOutputFile=TezRuntimeUtils.instantiateTaskOutputManager(conf,outputContext);
  LOG.info("String_Node_Str" + conf.get(TezJobConfig.TEZ_RUNTIME_PARTITIONER_CLASS) + "String_Node_Str");
  this.conf.setInt(TezJobConfig.TEZ_RUNTIME_NUM_EXPECTED_PARTITIONS,this.partitions);
  this.partitioner=TezRuntimeUtils.instantiatePartitioner(this.conf);
  this.combiner=TezRuntimeUtils.instantiateCombiner(this.conf,outputContext);
}