Program: 131941
Project: 131941
Buggy source:
public void executeParallel(){
  try {
    begin();
    out(LOG_LEVELS.INFO,"String_Node_Str",threads.length);
    if (source != null) {
      final Reader reader=source.read();
      if (reader != null)       extractor.extract(reader);
    }
    final LinkedBlockingQueue<OExtractedItem> queue=new LinkedBlockingQueue<OExtractedItem>(threads.length * 500){
      @Override public boolean offer(      OExtractedItem e){
        try {
          put(e);
          return true;
        }
 catch (        InterruptedException ie) {
          Thread.currentThread().interrupt();
        }
        return false;
      }
    }
;
    final AtomicLong counter=new AtomicLong();
    final AtomicBoolean extractionFinished=new AtomicBoolean(false);
    final OETLProcessor processor=this;
    for (int i=0; i < threads.length; ++i) {
      threads[i]=new Thread(new Runnable(){
        @Override public void run(){
          final OETLPipeline pipeline=new OETLPipeline(processor,transformers,loader,logLevel,maxRetries);
          pipeline.begin();
          while (!extractionFinished.get() || counter.get() > 0) {
            try {
              final OExtractedItem content=queue.take();
              try {
                pipeline.execute(content);
              }
  finally {
                counter.decrementAndGet();
              }
            }
 catch (            InterruptedException e) {
            }
          }
        }
      }
,"String_Node_Str" + i);
      threads[i].setDaemon(true);
      threads[i].start();
    }
    while (extractor.hasNext()) {
      final OExtractedItem current=extractor.next();
      queue.offer(current);
      counter.incrementAndGet();
    }
    extractionFinished.set(true);
    while (counter.get() > 0) {
      out(LOG_LEVELS.INFO,"String_Node_Str" + counter.get() + "String_Node_Str");
      try {
        Thread.sleep(500);
      }
 catch (      InterruptedException e) {
      }
    }
    end();
  }
 catch (  OETLProcessHaltedException e) {
    out(LOG_LEVELS.ERROR,"String_Node_Str" + e);
  }
}

Fixed version (ground truth):
public void executeParallel(){
  try {
    begin();
    out(LOG_LEVELS.INFO,"String_Node_Str",threads.length);
    if (source != null) {
      final Reader reader=source.read();
      if (reader != null)       extractor.extract(reader);
    }
    final LinkedBlockingQueue<OExtractedItem> queue=new LinkedBlockingQueue<OExtractedItem>(threads.length * 500){
      @Override public boolean offer(      OExtractedItem e){
        try {
          put(e);
          return true;
        }
 catch (        InterruptedException ie) {
          Thread.currentThread().interrupt();
        }
        return false;
      }
    }
;
    final AtomicLong counter=new AtomicLong();
    final AtomicBoolean extractionFinished=new AtomicBoolean(false);
    final OETLProcessor processor=this;
    for (int i=0; i < threads.length; ++i) {
      threads[i]=new Thread(new Runnable(){
        @Override public void run(){
          final OETLPipeline pipeline=new OETLPipeline(processor,transformers,loader,logLevel,maxRetries);
          pipeline.begin();
          while (!extractionFinished.get() || counter.get() > 0) {
            try {
              final OExtractedItem content=queue.take();
              try {
                pipeline.execute(content);
              }
  finally {
                counter.decrementAndGet();
              }
            }
 catch (            InterruptedException e) {
            }
          }
        }
      }
,"String_Node_Str" + i);
      threads[i].setDaemon(true);
      threads[i].start();
    }
    while (extractor.hasNext()) {
      final OExtractedItem current=extractor.next();
      queue.offer(current);
      counter.incrementAndGet();
    }
    extractionFinished.set(true);
    while (counter.get() > 0) {
      out(LOG_LEVELS.INFO,"String_Node_Str" + counter.get() + "String_Node_Str");
      try {
        Thread.sleep(500);
      }
 catch (      InterruptedException e) {
      }
    }
    end();
  }
 catch (  OETLProcessHaltedException e) {
    out(LOG_LEVELS.ERROR,"String_Node_Str",e);
  }
}