Program: 80098
Project: 80098
Buggy source:
public void testReplication_Local() throws Exception {
  cleanAllTestHosts();
  initEnvironment();
  initMaster(masterServerHost,replicatedDb);
  masterServer=startServer(masterJvmVersion,derbyMasterVersion,masterServerHost,ALL_INTERFACES,masterServerPort,masterDatabasePath + FS + masterDbSubPath);
  slaveServer=startServer(slaveJvmVersion,derbySlaveVersion,slaveServerHost,ALL_INTERFACES,slaveServerPort,slaveDatabasePath + FS + slaveDbSubPath);
  startServerMonitor(slaveServerHost);
  bootMasterDatabase(jvmVersion,masterDatabasePath + FS + masterDbSubPath,replicatedDb,masterServerHost,masterServerPort,null);
  initSlave(slaveServerHost,jvmVersion,replicatedDb);
  startSlave(jvmVersion,replicatedDb,slaveServerHost,slaveServerPort,slaveServerHost,slaveReplPort,testClientHost);
  startMaster(jvmVersion,replicatedDb,masterServerHost,masterServerPort,masterServerHost,slaveServerPort,slaveServerHost,slaveReplPort);
  replicationTest="String_Node_Str";
  util.DEBUG("String_Node_Str" + replicationTest);
  replicationVerify="String_Node_Str";
  util.DEBUG("String_Node_Str" + replicationVerify);
  runTest(replicationTest,jvmVersion,testClientHost,masterServerHost,masterServerPort,replicatedDb);
  failOver(jvmVersion,masterDatabasePath,masterDbSubPath,replicatedDb,masterServerHost,masterServerPort,testClientHost);
  connectPing(slaveDatabasePath + FS + slaveDbSubPath+ FS+ replicatedDb,slaveServerHost,slaveServerPort,testClientHost);
  verifySlave();
  verifyMaster();
  stopServer(jvmVersion,derbyVersion,slaveServerHost,slaveServerPort);
  stopServer(jvmVersion,derbyVersion,masterServerHost,masterServerPort);
}

Fixed version (ground truth):
public void testReplication_Local() throws Exception {
  cleanAllTestHosts();
  initEnvironment();
  initMaster(masterServerHost,replicatedDb);
  masterServer=startServer(masterJvmVersion,derbyMasterVersion,masterServerHost,ALL_INTERFACES,masterServerPort,masterDbSubPath);
  slaveServer=startServer(slaveJvmVersion,derbySlaveVersion,slaveServerHost,ALL_INTERFACES,slaveServerPort,slaveDbSubPath);
  startServerMonitor(slaveServerHost);
  bootMasterDatabase(jvmVersion,masterDatabasePath + FS + masterDbSubPath,replicatedDb,masterServerHost,masterServerPort,null);
  initSlave(slaveServerHost,jvmVersion,replicatedDb);
  startSlave(jvmVersion,replicatedDb,slaveServerHost,slaveServerPort,slaveServerHost,slaveReplPort,testClientHost);
  startMaster(jvmVersion,replicatedDb,masterServerHost,masterServerPort,masterServerHost,slaveServerPort,slaveServerHost,slaveReplPort);
  replicationTest="String_Node_Str";
  util.DEBUG("String_Node_Str" + replicationTest);
  replicationVerify="String_Node_Str";
  util.DEBUG("String_Node_Str" + replicationVerify);
  runTest(replicationTest,jvmVersion,testClientHost,masterServerHost,masterServerPort,replicatedDb);
  failOver(jvmVersion,masterDatabasePath,masterDbSubPath,replicatedDb,masterServerHost,masterServerPort,testClientHost);
  connectPing(slaveDatabasePath + FS + slaveDbSubPath+ FS+ replicatedDb,slaveServerHost,slaveServerPort,testClientHost);
  verifySlave();
  verifyMaster();
  stopServer(jvmVersion,derbyVersion,slaveServerHost,slaveServerPort);
  stopServer(jvmVersion,derbyVersion,masterServerHost,masterServerPort);
}