Program: 47740
Project: 47740
Buggy source:
public void createTestTable() throws Exception {
  if (m_admin == null) {
    throw new IOException("String_Node_Str");
  }
  if (m_admin.tableExists("String_Node_Str")) {
    m_admin.disableTable("String_Node_Str");
    m_admin.deleteTable("String_Node_Str");
  }
  List<String> colFamilies=new ArrayList<String>();
  colFamilies.add("String_Node_Str");
  colFamilies.add("String_Node_Str");
  m_admin.createTable("String_Node_Str",colFamilies,null);
  Properties props=new Properties();
  props.setProperty(HBaseConnection.HTABLE_WRITE_BUFFER_SIZE_KEY,"String_Node_Str" + (1024 * 1024 * 12));
  m_admin.newTargetTable("String_Node_Str",props);
  Random r=new Random();
  String[] nomVals={"String_Node_Str","String_Node_Str","String_Node_Str"};
  Date date=new Date();
  Calendar c=new GregorianCalendar();
  c.setTime(date);
  Calendar c2=new GregorianCalendar();
  c2.set(1970,2,1);
  for (long key=-500; key < 20000; key++) {
    m_admin.newTargetTablePut(HBaseValueMeta.encodeKeyValue(new Long(key),Mapping.KeyType.LONG,m_bytesUtil),false);
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes((int)key / 10));
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes("String_Node_Str" + key));
    if (key % 10L > 0) {
      int index=r.nextInt(3);
      String nomVal=nomVals[index];
      m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(nomVal));
    }
    double d=r.nextDouble();
    int signedInt=r.nextInt(100);
    if (d < 0.5) {
      signedInt=-signedInt;
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(signedInt));
    float f=r.nextFloat() * 1000.0f;
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(f));
    if (d > 0.5) {
      f=-f;
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(f));
    double dd=d * 10000 * r.nextDouble();
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(dd));
    if (d > 0.5) {
      dd=-dd;
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(dd));
    long l=r.nextInt(300);
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(l));
    if (d < 0.5) {
      l=-l;
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(l));
    c.add(Calendar.DAY_OF_YEAR,1);
    long longd=c.getTimeInMillis();
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(longd));
    c2.add(Calendar.DAY_OF_YEAR,-1);
    longd=c2.getTimeInMillis();
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(longd));
    String bVal="String_Node_Str";
    if (d < 0.5) {
      bVal="String_Node_Str";
    }
 else {
      bVal="String_Node_Str";
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(bVal));
    byte[] serialized=HBaseValueMeta.encodeObject(new Double(d));
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,serialized);
    byte[] rawStuff=m_bytesUtil.toBytes(5034555);
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,rawStuff);
    m_admin.executeTargetTablePut();
  }
  m_admin.flushCommitsTargetTable();
  m_admin.closeTargetTable();
}

Fixed version (ground truth):
public void createTestTable() throws Exception {
  if (m_admin == null) {
    throw new IOException("String_Node_Str");
  }
  if (m_admin.tableExists("String_Node_Str")) {
    m_admin.disableTable("String_Node_Str");
    m_admin.deleteTable("String_Node_Str");
  }
  List<String> colFamilies=new ArrayList<String>();
  colFamilies.add("String_Node_Str");
  colFamilies.add("String_Node_Str");
  m_admin.createTable("String_Node_Str",colFamilies,null);
  Properties props=new Properties();
  props.setProperty(HBaseConnection.HTABLE_WRITE_BUFFER_SIZE_KEY,"String_Node_Str" + (1024 * 1024 * 12));
  m_admin.newTargetTable("String_Node_Str",props);
  Random r=new Random();
  String[] nomVals={"String_Node_Str","String_Node_Str","String_Node_Str"};
  Date date=new Date();
  Calendar c=new GregorianCalendar();
  c.setTime(date);
  Calendar c2=new GregorianCalendar();
  c2.set(1970,2,1);
  for (long key=-500; key < 20000; key++) {
    m_admin.newTargetTablePut(HBaseValueMeta.encodeKeyValue(new Long(key),Mapping.KeyType.LONG,m_bytesUtil),false);
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes((key < 0 ? (int)-key : key) / 10));
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes("String_Node_Str" + key));
    if (key % 10L > 0) {
      int index=r.nextInt(3);
      String nomVal=nomVals[index];
      m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(nomVal));
    }
    double d=r.nextDouble();
    int signedInt=r.nextInt(100);
    if (d < 0.5) {
      signedInt=-signedInt;
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(signedInt));
    float f=r.nextFloat() * 1000.0f;
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(f));
    if (d > 0.5) {
      f=-f;
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(f));
    double dd=d * 10000 * r.nextDouble();
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(dd));
    if (d > 0.5) {
      dd=-dd;
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(dd));
    long l=r.nextInt(300);
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(l));
    if (d < 0.5) {
      l=-l;
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(l));
    c.add(Calendar.DAY_OF_YEAR,1);
    long longd=c.getTimeInMillis();
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(longd));
    c2.add(Calendar.DAY_OF_YEAR,-1);
    longd=c2.getTimeInMillis();
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(longd));
    String bVal="String_Node_Str";
    if (d < 0.5) {
      bVal="String_Node_Str";
    }
 else {
      bVal="String_Node_Str";
    }
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,m_bytesUtil.toBytes(bVal));
    byte[] serialized=HBaseValueMeta.encodeObject(new Double(d));
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,serialized);
    byte[] rawStuff=m_bytesUtil.toBytes(5034555);
    m_admin.addColumnToTargetPut("String_Node_Str","String_Node_Str",false,rawStuff);
    m_admin.executeTargetTablePut();
  }
  m_admin.flushCommitsTargetTable();
  m_admin.closeTargetTable();
}