Program: 31231
Project: 31231
Buggy source:
@Test public void testCreateAsSelectAll() throws Exception {
  int N=5;
  try (JournalWriter w=compiler.createWriter(factory,"String_Node_Str")){
    Rnd rnd=new Rnd();
    for (int i=0; i < N; i++) {
      JournalEntryWriter ew=w.entryWriter();
      ew.putInt(0,i);
      ew.put(1,(byte)rnd.nextInt());
      ew.putShort(2,(short)rnd.nextInt());
      ew.putLong(3,rnd.nextLong());
      ew.putFloat(4,rnd.nextFloat());
      ew.putDouble(5,rnd.nextDouble());
      ew.putDate(6,rnd.nextLong());
      ew.putNull(7);
      ew.putDate(8,rnd.nextLong());
      ew.putSym(9,rnd.nextChars(1));
      ew.putStr(10,rnd.nextChars(10));
      ew.putBool(11,rnd.nextBoolean());
      ew.append();
    }
    w.commit();
  }
   compiler.execute(factory,"String_Node_Str");
  int count=0;
  RecordSource rs=compiler.compile(factory,"String_Node_Str");
  RecordCursor cursor=rs.prepareCursor(factory);
  Rnd rnd=new Rnd();
  while (cursor.hasNext()) {
    Record rec=cursor.next();
    Assert.assertEquals(count,rec.getInt(0));
    Assert.assertTrue((byte)rnd.nextInt() == rec.get(1));
    Assert.assertEquals((short)rnd.nextInt(),rec.getShort(2));
    Assert.assertEquals(rnd.nextLong(),rec.getLong(3));
    Assert.assertEquals(rnd.nextFloat(),rec.getFloat(4),0.00001f);
    Assert.assertEquals(rnd.nextDouble(),rec.getDouble(5),0.00000000001);
    Assert.assertEquals(rnd.nextLong(),rec.getDate(6));
    Assert.assertNull(rec.getBin(7));
    Assert.assertEquals(rnd.nextLong(),rec.getDate(8));
    TestUtils.assertEquals(rnd.nextChars(1),rec.getSym(9));
    TestUtils.assertEquals(rnd.nextChars(10),rec.getFlyweightStr(10));
    Assert.assertEquals(rnd.nextBoolean(),rec.getBool(11));
    count++;
  }
}

Fixed version (ground truth):
@Test public void testCreateAsSelectAll() throws Exception {
  int N=50;
  try (JournalWriter w=compiler.createWriter(factory,"String_Node_Str")){
    Rnd rnd=new Rnd();
    long t=Dates.parseDateTime("String_Node_Str");
    for (int i=0; i < N; i++) {
      JournalEntryWriter ew=w.entryWriter(t+=Dates.DAY_MILLIS);
      ew.putInt(0,i);
      ew.put(1,(byte)rnd.nextInt());
      ew.putShort(2,(short)rnd.nextInt());
      ew.putLong(3,rnd.nextLong());
      ew.putFloat(4,rnd.nextFloat());
      ew.putDouble(5,rnd.nextDouble());
      ew.putDate(6,rnd.nextLong());
      ew.putNull(7);
      ew.putSym(9,rnd.nextChars(1));
      ew.putStr(10,rnd.nextChars(10));
      ew.putBool(11,rnd.nextBoolean());
      ew.append();
    }
    w.commit();
  }
   compiler.execute(factory,"String_Node_Str");
  try (Journal r=factory.reader("String_Node_Str")){
    Assert.assertEquals(2,r.getPartitionCount());
  }
   int count=0;
  RecordSource rs=compiler.compile(factory,"String_Node_Str");
  RecordCursor cursor=rs.prepareCursor(factory);
  Rnd rnd=new Rnd();
  while (cursor.hasNext()) {
    Record rec=cursor.next();
    Assert.assertEquals(count,rec.getInt(0));
    Assert.assertTrue((byte)rnd.nextInt() == rec.get(1));
    Assert.assertEquals((short)rnd.nextInt(),rec.getShort(2));
    Assert.assertEquals(rnd.nextLong(),rec.getLong(3));
    Assert.assertEquals(rnd.nextFloat(),rec.getFloat(4),0.00001f);
    Assert.assertEquals(rnd.nextDouble(),rec.getDouble(5),0.00000000001);
    Assert.assertEquals(rnd.nextLong(),rec.getDate(6));
    Assert.assertNull(rec.getBin(7));
    TestUtils.assertEquals(rnd.nextChars(1),rec.getSym(9));
    TestUtils.assertEquals(rnd.nextChars(10),rec.getFlyweightStr(10));
    Assert.assertEquals(rnd.nextBoolean(),rec.getBool(11));
    count++;
  }
}