Program: 31484
Project: 31484
Buggy source:
@BeforeClass public static void setUpClass() throws Exception {
  JournalWriter jw=factory.writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$double("String_Node_Str").$str("String_Node_Str").$sym("String_Node_Str").$float("String_Node_Str").$short("String_Node_Str").$long("String_Node_Str").$bool("String_Node_Str").$());
  JournalWriter jwy=factory.writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$str("String_Node_Str").$());
  Rnd rnd=new Rnd();
  String[] ccy=new String[3];
  for (int i=0; i < ccy.length; i++) {
    ccy[i]=rnd.nextChars(6).toString();
  }
  int count=100;
  long ts=Dates.parseDateTime("String_Node_Str");
  for (int i=0; i < count; i++) {
    JournalEntryWriter w=jw.entryWriter();
    w.putDate(0,ts+=10000);
    w.putSym(1,ccy[rnd.nextPositiveInt() % ccy.length]);
    w.putDouble(2,rnd.nextDouble());
    w.putDouble(3,rnd.nextDouble());
    w.putStr(4,rnd.nextChars(rnd.nextPositiveInt() % 128));
    w.putSym(5,ccy[rnd.nextPositiveInt() % ccy.length]);
    w.putFloat(6,rnd.nextFloat());
    w.putShort(7,(short)rnd.nextInt());
    w.putLong(8,rnd.nextLong());
    w.putBool(9,rnd.nextBoolean());
    w.append();
  }
  jw.commit();
  int county=10;
  ts=Dates.parseDateTime("String_Node_Str");
  for (int i=0; i < county; i++) {
    JournalEntryWriter w=jwy.entryWriter();
    w.putDate(0,ts+=60000);
    w.putSym(1,ccy[rnd.nextPositiveInt() % ccy.length]);
    w.putDouble(2,rnd.nextDouble());
    w.putStr(3,rnd.nextChars(rnd.nextPositiveInt() % 128));
    w.append();
  }
  jwy.commit();
  JournalWriter jwa=factory.writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$());
  JournalWriter jwb=factory.writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$());
  JournalEntryWriter ewa;
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,0.538);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,1.35);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,1.41);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,0.601);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,1.26);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,1.29);
  ewa.append();
  jwa.commit();
  JournalEntryWriter ewb;
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,1100);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,1200);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,1500);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,130);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,150);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,12000);
  ewb.append();
  jwb.commit();
}

Fixed version (ground truth):
@BeforeClass public static void setUpClass() throws Exception {
  int xcount=100;
  int ycount=10;
  JournalWriter xw=factory.writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$double("String_Node_Str").$str("String_Node_Str").$sym("String_Node_Str").$float("String_Node_Str").$short("String_Node_Str").$long("String_Node_Str").$bool("String_Node_Str").recordCountHint(xcount).$());
  JournalWriter yw=factory.writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$str("String_Node_Str").recordCountHint(ycount).$());
  Rnd rnd=new Rnd();
  String[] ccy=new String[3];
  for (int i=0; i < ccy.length; i++) {
    ccy[i]=rnd.nextChars(6).toString();
  }
  long ts=Dates.parseDateTime("String_Node_Str");
  for (int i=0; i < xcount; i++) {
    JournalEntryWriter w=xw.entryWriter();
    w.putDate(0,ts+=10000);
    w.putSym(1,ccy[rnd.nextPositiveInt() % ccy.length]);
    w.putDouble(2,rnd.nextDouble());
    w.putDouble(3,rnd.nextDouble());
    w.putStr(4,rnd.nextChars(rnd.nextPositiveInt() % 128));
    w.putSym(5,ccy[rnd.nextPositiveInt() % ccy.length]);
    w.putFloat(6,rnd.nextFloat());
    w.putShort(7,(short)rnd.nextInt());
    w.putLong(8,rnd.nextLong());
    w.putBool(9,rnd.nextBoolean());
    w.append();
  }
  xw.commit();
  ts=Dates.parseDateTime("String_Node_Str");
  for (int i=0; i < ycount; i++) {
    JournalEntryWriter w=yw.entryWriter();
    w.putDate(0,ts+=60000);
    w.putSym(1,ccy[rnd.nextPositiveInt() % ccy.length]);
    w.putDouble(2,rnd.nextDouble());
    w.putStr(3,rnd.nextChars(rnd.nextPositiveInt() % 128));
    w.append();
  }
  yw.commit();
  JournalWriter jwa=factory.writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$());
  JournalWriter jwb=factory.writer(new JournalStructure("String_Node_Str").$ts().$sym("String_Node_Str").$double("String_Node_Str").$());
  JournalEntryWriter ewa;
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,0.538);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,1.35);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,1.41);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,0.601);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,1.26);
  ewa.append();
  ewa=jwa.entryWriter();
  ewa.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewa.putSym(1,"String_Node_Str");
  ewa.putDouble(2,1.29);
  ewa.append();
  jwa.commit();
  JournalEntryWriter ewb;
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,1100);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,1200);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,1500);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,130);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,150);
  ewb.append();
  ewb=jwb.entryWriter();
  ewb.putDate(0,Dates.parseDateTime("String_Node_Str"));
  ewb.putSym(1,"String_Node_Str");
  ewb.putDouble(2,12000);
  ewb.append();
  jwb.commit();
}