Program: 188000
Project: 188000
Buggy source:
public void test() throws Exception {
  MailboxFactory mailboxFactory=JAMailboxFactory.newMailboxFactory(10);
  Mailbox factoryMailbox=mailboxFactory.createMailbox();
  JAFactory factory=new JAFactory(factoryMailbox);
  (new JFileFactories(factoryMailbox)).setParent(factory);
  NullTransactionFactory ntf=new NullTransactionFactory("String_Node_Str");
  factory.registerActorFactory(ntf);
  JAFuture future=new JAFuture();
  Mailbox dbMailbox=mailboxFactory.createAsyncMailbox();
  StatelessDB db=new StatelessDB(dbMailbox);
  db.setParent(factory);
  db.initialCapacity=10000;
  DurableTransactionLogger durableTransactionLogger=db.getDurableTransactionLogger();
  Path path=FileSystems.getDefault().getPath("String_Node_Str");
  System.out.println(path.toAbsolutePath());
  durableTransactionLogger.fileChannel=FileChannel.open(path,StandardOpenOption.READ,StandardOpenOption.WRITE,StandardOpenOption.CREATE);
  TransactionAggregator transactionAggregator=db.getTransactionAggregator();
  TransactionLoggerDriver transactionLoggerDriver=new TransactionLoggerDriver(mailboxFactory.createAsyncMailbox());
  transactionLoggerDriver.setParent(transactionAggregator);
  transactionLoggerDriver.setInitialBufferCapacity(10000);
  transactionLoggerDriver.win=3;
  transactionLoggerDriver.batch=1;
  transactionLoggerDriver.count=1;
  Go.req.send(future,transactionLoggerDriver);
  long t0=System.currentTimeMillis();
  Go.req.send(future,transactionLoggerDriver);
  long t1=System.currentTimeMillis();
  System.out.println("String_Node_Str" + (t1 - t0));
  System.out.println("String_Node_Str" + (transactionLoggerDriver.batch * transactionLoggerDriver.count));
  durableTransactionLogger.fileChannel.close();
  mailboxFactory.close();
}

Fixed version (ground truth):
public void test() throws Exception {
  MailboxFactory mailboxFactory=JAMailboxFactory.newMailboxFactory(10);
  Mailbox factoryMailbox=mailboxFactory.createMailbox();
  JAFactory factory=new JAFactory(factoryMailbox);
  (new JFileFactories(factoryMailbox)).setParent(factory);
  NullTransactionFactory ntf=new NullTransactionFactory("String_Node_Str");
  factory.registerActorFactory(ntf);
  JAFuture future=new JAFuture();
  Mailbox dbMailbox=mailboxFactory.createAsyncMailbox();
  StatelessDB db=new StatelessDB(dbMailbox);
  db.setParent(factory);
  db.initialCapacity=10000;
  DurableTransactionLogger durableTransactionLogger=db.getDurableTransactionLogger();
  Path path=FileSystems.getDefault().getPath("String_Node_Str");
  System.out.println(path.toAbsolutePath());
  durableTransactionLogger.fileChannel=FileChannel.open(path,StandardOpenOption.READ,StandardOpenOption.WRITE,StandardOpenOption.CREATE);
  durableTransactionLogger.currentPosition=0L;
  TransactionAggregator transactionAggregator=db.getTransactionAggregator();
  TransactionLoggerDriver transactionLoggerDriver=new TransactionLoggerDriver(mailboxFactory.createAsyncMailbox());
  transactionLoggerDriver.setParent(transactionAggregator);
  transactionLoggerDriver.setInitialBufferCapacity(10000);
  transactionLoggerDriver.win=3;
  transactionLoggerDriver.batch=1;
  transactionLoggerDriver.count=1;
  Go.req.send(future,transactionLoggerDriver);
  long t0=System.currentTimeMillis();
  Go.req.send(future,transactionLoggerDriver);
  long t1=System.currentTimeMillis();
  System.out.println("String_Node_Str" + (t1 - t0));
  System.out.println("String_Node_Str" + (transactionLoggerDriver.batch * transactionLoggerDriver.count));
  durableTransactionLogger.fileChannel.close();
  mailboxFactory.close();
}