Program: 132403
Project: 132403
Buggy source:
/** 
 * @param args
 * @throws Exception 
 */
public static void main(String[] args) throws Exception {
  System.out.println("String_Node_Str");
  Logging.start(Logging.LEVEL_WARN);
  if (args.length != 2)   usage();
  Process p=Runtime.getRuntime().exec("String_Node_Str" + PATH);
  p.waitFor();
  long seed=0L;
  try {
    seed=Long.valueOf(args[0]);
  }
 catch (  NumberFormatException e) {
    error("String_Node_Str" + args[0]);
  }
  List<InetSocketAddress> slaves=new LinkedList<InetSocketAddress>();
  if (args[1].indexOf("String_Node_Str") == -1)   slaves.add(parseAddress(args[1]));
 else   for (  String adr : args[1].split("String_Node_Str"))   slaves.add(parseAddress(adr));
  generator=new ContinuesRandomGenerator(seed,ReplicationLongrunTestConfig.MAX_SEQUENCENO);
  Map<Integer,List<Object>> scenario=generator.getOperationsScenario();
  MasterConfig config=new MasterConfig(PATH,PATH,NUM_WKS,MAX_LOG_FILE_SIZE,CHECK_INTERVAL,SyncMode.ASYNC,0,0,ReplicationInterface.DEFAULT_MASTER_PORT,InetAddress.getLocalHost(),new InetSocketAddress(InetAddress.getLocalHost(),ReplicationInterface.DEFAULT_MASTER_PORT),slaves,50,null,MAX_REPLICATION_Q_LENGTH,0);
  DBS=(BabuDB)BabuDBFactory.createMasterBabuDB(config);
  int nOmetaOp=0;
  long metaOpTime=0L;
  int nOinsertOp=0;
  long insertOpTime=0L;
  long time;
  for (int i=1; i < ReplicationLongrunTestConfig.MAX_SEQUENCENO; i++) {
    List<Object> operation=scenario.get(i);
    if (operation != null) {
      nOmetaOp++;
      time=System.currentTimeMillis();
      performOperation(operation);
      metaOpTime+=System.currentTimeMillis() - time;
    }
 else {
      nOinsertOp++;
      time=System.currentTimeMillis();
      performInsert(i);
      insertOpTime+=System.currentTimeMillis() - time;
    }
  }
  double metaTroughput=((double)nOmetaOp) / (((double)metaOpTime) / 1000.0);
  double insertThroughput=((double)nOinsertOp) / (((double)insertOpTime) / 1000.0);
  System.out.println("String_Node_Str");
  System.out.format("String_Node_Str",metaTroughput);
  System.out.format("String_Node_Str",insertThroughput);
  DBS.shutdown();
}

Fixed version (ground truth):
/** 
 * @param args
 * @throws Exception 
 */
public static void main(String[] args) throws Exception {
  System.out.println("String_Node_Str");
  Logging.start(Logging.LEVEL_WARN);
  if (args.length != 2)   usage();
  Process p=Runtime.getRuntime().exec("String_Node_Str" + PATH);
  p.waitFor();
  long seed=0L;
  try {
    seed=Long.valueOf(args[0]);
  }
 catch (  NumberFormatException e) {
    error("String_Node_Str" + args[0]);
  }
  List<InetSocketAddress> slaves=new LinkedList<InetSocketAddress>();
  if (args[1].indexOf("String_Node_Str") == -1)   slaves.add(parseAddress(args[1]));
 else   for (  String adr : args[1].split("String_Node_Str"))   slaves.add(parseAddress(adr));
  generator=new ContinuesRandomGenerator(seed,ReplicationLongrunTestConfig.MAX_SEQUENCENO);
  Map<Integer,List<Object>> scenario=generator.getOperationsScenario();
  MasterConfig config=new MasterConfig(PATH,PATH,NUM_WKS,MAX_LOG_FILE_SIZE,CHECK_INTERVAL,SyncMode.ASYNC,0,0,ReplicationInterface.DEFAULT_MASTER_PORT,InetAddress.getLocalHost(),new InetSocketAddress(InetAddress.getLocalHost(),ReplicationInterface.DEFAULT_MASTER_PORT),slaves,50,null,MAX_REPLICATION_Q_LENGTH,0);
  DBS=(BabuDB)BabuDBFactory.createMasterBabuDB(config);
  int nOmetaOp=0;
  long metaOpTime=0L;
  int nOinsertOp=0;
  long insertOpTime=0L;
  long time;
  for (int i=1; i < ReplicationLongrunTestConfig.MAX_SEQUENCENO; i++) {
    List<Object> operation=scenario.get(i);
    if (operation != null) {
      nOmetaOp++;
      time=System.currentTimeMillis();
      performOperation(operation);
      metaOpTime+=System.currentTimeMillis() - time;
    }
 else {
      nOinsertOp++;
      time=System.currentTimeMillis();
      performInsert(i);
      insertOpTime+=System.currentTimeMillis() - time;
    }
  }
  double metaTroughput=((double)nOmetaOp) / (((double)metaOpTime) / 1000.0);
  double insertThroughput=((double)nOinsertOp) / (((double)insertOpTime) / 1000.0);
  System.out.println("String_Node_Str");
  System.out.format("String_Node_Str",metaTroughput);
  System.out.format("String_Node_Str",insertThroughput);
  Thread.sleep(60 * 1000);
  DBS.shutdown();
}