Program: 82581
Project: 82581
Buggy source:
@Override public Void call(Client client) throws Exception {
  System.out.println("String_Node_Str");
  List<String> tables=client.tableList();
  ObjectMapper mapper=new ObjectMapper();
  jdbc.update("String_Node_Str" + StringUtils.join(tables,"String_Node_Str") + "String_Node_Str");
  for (  String table : tables) {
    List<Map<String,Object>> existingTable=jdbc.queryForList("String_Node_Str",table);
    TableDescriptor descriptor=client.describe(table);
    Schema schema=client.schema(table);
    String schemaString=mapper.writeValueAsString(schema);
    Map<String,String> shardServerLayout=client.shardServerLayout(table);
    Map<String,ArrayList<String>> formattedShard=new HashMap<String,ArrayList<String>>();
    for (    String shard : shardServerLayout.keySet()) {
      String host=shardServerLayout.get(shard);
      if (formattedShard.get(host) != null) {
        formattedShard.get(host).add(shard);
      }
 else {
        formattedShard.put(host,new ArrayList<String>(Arrays.asList(shard)));
      }
    }
    String shardServerString=mapper.writeValueAsString(formattedShard);
    String tableUri=descriptor.tableUri;
    String tableAnalyzer=descriptor.analyzerDefinition.fullTextAnalyzerClassName;
    if (existingTable.isEmpty()) {
      jdbc.update("String_Node_Str",new Object[]{table,descriptor.isIsEnabled() ? 2 : 1,tableUri,tableAnalyzer,schemaString,shardServerString});
    }
 else {
      jdbc.update("String_Node_Str",new Object[]{table,descriptor.isIsEnabled() ? 2 : 1,tableUri,tableAnalyzer,schemaString,shardServerString});
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public Void call(Client client) throws Exception {
  System.out.println("String_Node_Str");
  List<String> tables=client.tableList();
  ObjectMapper mapper=new ObjectMapper();
  jdbc.update("String_Node_Str" + StringUtils.join(tables,"String_Node_Str") + "String_Node_Str");
  for (  String table : tables) {
    List<Map<String,Object>> existingTable=jdbc.queryForList("String_Node_Str",table);
    TableDescriptor descriptor=client.describe(table);
    Schema schema=client.schema(table);
    String schemaString=mapper.writeValueAsString(schema);
    Map<String,String> shardServerLayout=client.shardServerLayout(table);
    Map<String,ArrayList<String>> formattedShard=new HashMap<String,ArrayList<String>>();
    for (    String shard : shardServerLayout.keySet()) {
      String host=shardServerLayout.get(shard);
      if (formattedShard.get(host) != null) {
        formattedShard.get(host).add(shard);
      }
 else {
        formattedShard.put(host,new ArrayList<String>(Arrays.asList(shard)));
      }
    }
    String shardServerString=mapper.writeValueAsString(formattedShard);
    String tableUri=descriptor.tableUri;
    String tableAnalyzer=descriptor.analyzerDefinition.fullTextAnalyzerClassName;
    if (existingTable.isEmpty()) {
      jdbc.update("String_Node_Str",new Object[]{table,descriptor.isIsEnabled() ? 2 : 1,tableUri,tableAnalyzer,schemaString,shardServerString});
    }
 else {
      jdbc.update("String_Node_Str",new Object[]{descriptor.isIsEnabled() ? 2 : 1,tableUri,tableAnalyzer,schemaString,shardServerString,table});
    }
  }
  return null;
}