Program: 92810
Project: 92810
Buggy source:
@Override public void run(){
  request.start();
  final Integer[] CHUNK_SIZE=new Integer[1];
  CHUNK_SIZE[0]=Math.min(request.getNbRequested(),blockSize + ((indexing) ? 1 : 0));
  final Integer[] nbRead=new Integer[1];
  nbRead[0]=0;
  final Boolean[] isFinished=new Boolean[1];
  isFinished[0]=Boolean.FALSE;
  int startIndex=request.getIndex();
  while (!isFinished[0]) {
    TmfEventRequest<T> subRequest=new TmfEventRequest<T>(request.getDataType(),((ITmfEventRequest<?>)request).getRange(),startIndex + nbRead[0],CHUNK_SIZE[0],blockSize,ExecutionType.BACKGROUND){
      @Override public void handleData(      T data){
        super.handleData(data);
        request.handleData(data);
        if (this.getNbRead() > CHUNK_SIZE[0]) {
          System.out.println("String_Node_Str");
        }
      }
      @Override public void handleCompleted(){
        nbRead[0]+=this.getNbRead();
        if (nbRead[0] >= request.getNbRequested() || (this.getNbRead() < CHUNK_SIZE[0])) {
          if (isCancelled()) {
            request.cancel();
          }
 else {
            request.done();
          }
          isFinished[0]=Boolean.TRUE;
        }
        super.handleCompleted();
      }
    }
;
    if (!isFinished[0]) {
      queueRequest(subRequest);
      try {
        subRequest.waitForCompletion();
      }
 catch (      InterruptedException e) {
        e.printStackTrace();
      }
      if (startIndex == 0 && nbRead[0] == CHUNK_SIZE[0]) {
        startIndex=subRequest.getIndex();
      }
      CHUNK_SIZE[0]=Math.min(request.getNbRequested() - nbRead[0],blockSize);
    }
  }
}

Fixed version (ground truth):
@Override public void run(){
  request.start();
  final Integer[] CHUNK_SIZE=new Integer[1];
  CHUNK_SIZE[0]=Math.min(request.getNbRequested(),blockSize + ((indexing) ? 1 : 0));
  final Integer[] nbRead=new Integer[1];
  nbRead[0]=0;
  final Boolean[] isFinished=new Boolean[1];
  isFinished[0]=Boolean.FALSE;
  int startIndex=request.getIndex();
  while (!isFinished[0]) {
    TmfEventRequest<T> subRequest=new TmfEventRequest<T>(request.getDataType(),((ITmfEventRequest<?>)request).getRange(),startIndex + nbRead[0],CHUNK_SIZE[0],blockSize,ExecutionType.BACKGROUND){
      @Override public void handleData(      T data){
        super.handleData(data);
        request.handleData(data);
        if (this.getNbRead() > CHUNK_SIZE[0]) {
          System.out.println("String_Node_Str");
        }
      }
      @Override public void handleCompleted(){
        nbRead[0]+=this.getNbRead();
        if (nbRead[0] >= request.getNbRequested() || (this.getNbRead() < CHUNK_SIZE[0])) {
          if (this.isCancelled()) {
            request.cancel();
          }
 else           if (this.isFailed()) {
            request.fail();
          }
 else {
            request.done();
          }
          isFinished[0]=Boolean.TRUE;
        }
        super.handleCompleted();
      }
    }
;
    if (!isFinished[0]) {
      queueRequest(subRequest);
      try {
        subRequest.waitForCompletion();
      }
 catch (      InterruptedException e) {
        e.printStackTrace();
      }
      if (startIndex == 0 && nbRead[0] == CHUNK_SIZE[0]) {
        startIndex=subRequest.getIndex();
      }
      CHUNK_SIZE[0]=Math.min(request.getNbRequested() - nbRead[0],blockSize);
    }
  }
}