Program: 172761
Project: 172761
Buggy source:
@Test public void T_setLong_2() throws IOException {
  IColumn column=new PrimitiveColumn(ColumnType.LONG,"String_Node_Str");
  column.add(ColumnType.LONG,new LongObj((long)100),0);
  column.add(ColumnType.LONG,new LongObj((long)200),1);
  column.add(ColumnType.LONG,new LongObj((long)255),5);
  ColumnBinaryMakerConfig defaultConfig=new ColumnBinaryMakerConfig();
  ColumnBinaryMakerCustomConfigNode configNode=new ColumnBinaryMakerCustomConfigNode("String_Node_Str",defaultConfig);
  IColumnBinaryMaker maker=new UniqLongColumnBinaryMaker();
  ColumnBinary columnBinary=maker.toBinary(defaultConfig,null,column);
  BufferAllocator allocator=new RootAllocator(1024 * 1024 * 10);
  SchemaChangeCallBack callBack=new SchemaChangeCallBack();
  MapVector parent=new MapVector("String_Node_Str",allocator,new FieldType(false,Struct.INSTANCE,null,null),callBack);
  parent.allocateNew();
  IMemoryAllocator memoryAllocator=ArrowMemoryAllocatorFactory.getFromMapVector(ColumnType.LONG,"String_Node_Str",allocator,parent);
  maker.loadInMemoryStorage(columnBinary,memoryAllocator);
  MapReader rootReader=parent.getReader();
  FieldReader reader=rootReader.reader("String_Node_Str");
  reader.setPosition(0);
  assertEquals(reader.readLong().longValue(),(long)100);
  reader.setPosition(1);
  assertEquals(reader.readLong().longValue(),(long)200);
  reader.setPosition(5);
  assertEquals(reader.readLong().longValue(),(long)255);
  reader.setPosition(2);
  assertEquals(reader.readLong(),null);
  reader.setPosition(3);
  assertEquals(reader.readLong(),null);
  reader.setPosition(4);
  assertEquals(reader.readLong(),null);
}

Fixed version (ground truth):
@Test public void T_setLong_2() throws IOException {
  IColumn column=new PrimitiveColumn(ColumnType.LONG,"String_Node_Str");
  column.add(ColumnType.LONG,new LongObj((long)100),0);
  column.add(ColumnType.LONG,new LongObj((long)200),1);
  column.add(ColumnType.LONG,new LongObj((long)255),5);
  ColumnBinaryMakerConfig defaultConfig=new ColumnBinaryMakerConfig();
  ColumnBinaryMakerCustomConfigNode configNode=new ColumnBinaryMakerCustomConfigNode("String_Node_Str",defaultConfig);
  IColumnBinaryMaker maker=new OptimizeLongColumnBinaryMaker();
  ColumnBinary columnBinary=maker.toBinary(defaultConfig,null,column);
  BufferAllocator allocator=new RootAllocator(1024 * 1024 * 10);
  SchemaChangeCallBack callBack=new SchemaChangeCallBack();
  MapVector parent=new MapVector("String_Node_Str",allocator,new FieldType(false,Struct.INSTANCE,null,null),callBack);
  parent.allocateNew();
  IMemoryAllocator memoryAllocator=ArrowMemoryAllocatorFactory.getFromMapVector(ColumnType.LONG,"String_Node_Str",allocator,parent);
  maker.loadInMemoryStorage(columnBinary,memoryAllocator);
  MapReader rootReader=parent.getReader();
  FieldReader reader=rootReader.reader("String_Node_Str");
  reader.setPosition(0);
  assertEquals(reader.readLong().longValue(),(long)100);
  reader.setPosition(1);
  assertEquals(reader.readLong().longValue(),(long)200);
  reader.setPosition(5);
  assertEquals(reader.readLong().longValue(),(long)255);
  reader.setPosition(2);
  assertEquals(reader.readLong(),null);
  reader.setPosition(3);
  assertEquals(reader.readLong(),null);
  reader.setPosition(4);
  assertEquals(reader.readLong(),null);
}