Program: 112045
Project: 112045
Buggy source:
private void writeFile() throws IOException {
  final MessageType schema=new MessageType("String_Node_Str",new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.INT32,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.INT32,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.DOUBLE,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new GroupType(Repetition.OPTIONAL,"String_Node_Str",OriginalType.MAP_KEY_VALUE,new GroupType(Repetition.REPEATED,"String_Node_Str",new PrimitiveType(Repetition.REQUIRED,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"))),new GroupType(Repetition.OPTIONAL,"String_Node_Str",OriginalType.LIST,new GroupType(Repetition.REPEATED,"String_Node_Str",new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.INT32,"String_Node_Str"))));
  final MemPageStore pageStore=new MemPageStore(1000);
  final ColumnWriteStoreImpl store=new ColumnWriteStoreImpl(pageStore,8 * 1024,8 * 1024,false);
  final MessageColumnIO columnIO=new ColumnIOFactory().getColumnIO(schema);
  final RecordConsumer recordWriter=columnIO.getRecordWriter(store);
  Map<String,String> map=new HashMap<String,String>();
  map.put("String_Node_Str","String_Node_Str");
  map.put("String_Node_Str","String_Node_Str");
  List<Integer> list=new ArrayList<Integer>();
  list.add(0);
  list.add(12);
  list.add(17);
  int recordCount=0;
  mapData.clear();
  for (int i=0; i < 1000; i++) {
    recordWriter.startMessage();
    mapData.put(i,UtilitiesTestMethods.createArrayWritable(i,i % 11 == 0 ? null : "String_Node_Str" + i,i % 12 == 0 ? null : "String_Node_Str" + i,i % 13 == 0 ? null : i,i % 14 == 0 ? null : "String_Node_Str" + i,i % 15 == 0 ? null : 1.2d * i,i % 16 == 0 ? null : "String_Node_Str" + i,i % 17 == 0 ? null : "String_Node_Str" + i,i % 18 == 0 ? null : map,i % 19 == 0 ? null : list));
    saveData(recordWriter,i,i % 11 == 0 ? null : "String_Node_Str" + i,i % 12 == 0 ? null : "String_Node_Str" + i,i % 13 == 0 ? null : i,i % 14 == 0 ? null : "String_Node_Str" + i,i % 15 == 0 ? null : 1.2d * i,i % 16 == 0 ? null : "String_Node_Str" + i,i % 17 == 0 ? null : "String_Node_Str" + i,i % 18 == 0 ? null : map,i % 19 == 0 ? null : list);
    recordWriter.endMessage();
    ++recordCount;
  }
  store.flush();
  UtilitiesTestMethods.writeToFile(new Path(testFile.getAbsolutePath()),conf,schema,pageStore,recordCount);
}

Fixed version (ground truth):
private void writeFile() throws IOException {
  final MessageType schema=new MessageType("String_Node_Str",new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.INT32,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.INT32,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.DOUBLE,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"),new GroupType(Repetition.OPTIONAL,"String_Node_Str",OriginalType.MAP_KEY_VALUE,new GroupType(Repetition.REPEATED,"String_Node_Str",new PrimitiveType(Repetition.REQUIRED,PrimitiveTypeName.BINARY,"String_Node_Str"),new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.BINARY,"String_Node_Str"))),new GroupType(Repetition.OPTIONAL,"String_Node_Str",OriginalType.LIST,new GroupType(Repetition.REPEATED,"String_Node_Str",new PrimitiveType(Repetition.OPTIONAL,PrimitiveTypeName.INT32,"String_Node_Str"))));
  final MemPageStore pageStore=new MemPageStore(1000);
  final ColumnWriteStoreImpl store=new ColumnWriteStoreImpl(pageStore,8 * 1024,8 * 1024,8 * 1024,false);
  final MessageColumnIO columnIO=new ColumnIOFactory().getColumnIO(schema);
  final RecordConsumer recordWriter=columnIO.getRecordWriter(store);
  Map<String,String> map=new HashMap<String,String>();
  map.put("String_Node_Str","String_Node_Str");
  map.put("String_Node_Str","String_Node_Str");
  List<Integer> list=new ArrayList<Integer>();
  list.add(0);
  list.add(12);
  list.add(17);
  int recordCount=0;
  mapData.clear();
  for (int i=0; i < 1000; i++) {
    recordWriter.startMessage();
    mapData.put(i,UtilitiesTestMethods.createArrayWritable(i,i % 11 == 0 ? null : "String_Node_Str" + i,i % 12 == 0 ? null : "String_Node_Str" + i,i % 13 == 0 ? null : i,i % 14 == 0 ? null : "String_Node_Str" + i,i % 15 == 0 ? null : 1.2d * i,i % 16 == 0 ? null : "String_Node_Str" + i,i % 17 == 0 ? null : "String_Node_Str" + i,i % 18 == 0 ? null : map,i % 19 == 0 ? null : list));
    saveData(recordWriter,i,i % 11 == 0 ? null : "String_Node_Str" + i,i % 12 == 0 ? null : "String_Node_Str" + i,i % 13 == 0 ? null : i,i % 14 == 0 ? null : "String_Node_Str" + i,i % 15 == 0 ? null : 1.2d * i,i % 16 == 0 ? null : "String_Node_Str" + i,i % 17 == 0 ? null : "String_Node_Str" + i,i % 18 == 0 ? null : map,i % 19 == 0 ? null : list);
    recordWriter.endMessage();
    ++recordCount;
  }
  store.flush();
  UtilitiesTestMethods.writeToFile(new Path(testFile.getAbsolutePath()),conf,schema,pageStore,recordCount);
}