Program: 172763
Project: 172763
Buggy source:
@Test public void T_setString_2() throws IOException {
  IColumn column=new PrimitiveColumn(ColumnType.STRING,"String_Node_Str");
  column.add(ColumnType.STRING,new StringObj("String_Node_Str"),0);
  column.add(ColumnType.STRING,new StringObj("String_Node_Str"),1);
  column.add(ColumnType.STRING,new StringObj("String_Node_Str"),5);
  ColumnBinaryMakerConfig defaultConfig=new ColumnBinaryMakerConfig();
  ColumnBinaryMakerCustomConfigNode configNode=new ColumnBinaryMakerCustomConfigNode("String_Node_Str",defaultConfig);
  IColumnBinaryMaker maker=new UniqStringColumnBinaryMaker();
  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.STRING,"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.readText().toString(),"String_Node_Str");
  reader.setPosition(1);
  assertEquals(reader.readText().toString(),"String_Node_Str");
  reader.setPosition(5);
  assertEquals(reader.readText().toString(),"String_Node_Str");
  reader.setPosition(2);
  assertEquals(reader.readText(),null);
  reader.setPosition(3);
  assertEquals(reader.readText(),null);
  reader.setPosition(4);
  assertEquals(reader.readText(),null);
}

Fixed version (ground truth):
@Test public void T_setString_2() throws IOException {
  IColumn column=new PrimitiveColumn(ColumnType.STRING,"String_Node_Str");
  column.add(ColumnType.STRING,new StringObj("String_Node_Str"),0);
  column.add(ColumnType.STRING,new StringObj("String_Node_Str"),1);
  column.add(ColumnType.STRING,new StringObj("String_Node_Str"),5);
  ColumnBinaryMakerConfig defaultConfig=new ColumnBinaryMakerConfig();
  ColumnBinaryMakerCustomConfigNode configNode=new ColumnBinaryMakerCustomConfigNode("String_Node_Str",defaultConfig);
  IColumnBinaryMaker maker=new OptimizeDumpStringColumnBinaryMaker();
  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.STRING,"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.readText().toString(),"String_Node_Str");
  reader.setPosition(1);
  assertEquals(reader.readText().toString(),"String_Node_Str");
  reader.setPosition(5);
  assertEquals(reader.readText().toString(),"String_Node_Str");
  reader.setPosition(2);
  assertEquals(reader.readText(),null);
  reader.setPosition(3);
  assertEquals(reader.readText(),null);
  reader.setPosition(4);
  assertEquals(reader.readText(),null);
}