Program: 4975
Project: 4975
Buggy source:
@BeforeClass public static void init() throws Exception {
  hConf=TEST_HBASE.getConfiguration();
  cConf=CConfiguration.create();
  cConf.set(Constants.Zookeeper.QUORUM,TEST_HBASE.getZkConnectionString());
  cConf.set(TxConstants.Service.CFG_DATA_TX_BIND_PORT,Integer.toString(Networks.getRandomPort()));
  cConf.set(Constants.Dataset.TABLE_PREFIX,TABLE_PREFIX);
  cConf.set(Constants.CFG_HDFS_USER,System.getProperty("String_Node_Str"));
  cConf.setLong(QueueConstants.QUEUE_CONFIG_UPDATE_FREQUENCY,10000L);
  cConf.setInt(QueueConstants.ConfigKeys.QUEUE_TABLE_PRESPLITS,4);
  cConf.setLong(TxConstants.Manager.CFG_TX_TIMEOUT,100000000L);
  cConf.setLong(TxConstants.Manager.CFG_TX_MAX_TIMEOUT,100000000L);
  injector=Guice.createInjector(new DataFabricDistributedModule(),new ConfigModule(cConf,hConf),new ZKClientModule(),new LocationRuntimeModule().getDistributedModules(),new NamespaceClientUnitTestModule().getModule(),new DiscoveryRuntimeModule().getDistributedModules(),new TransactionMetricsModule(),new AuthorizationTestModule(),new AuthorizationEnforcementModule().getInMemoryModules(),new AuthenticationContextModules().getMasterModule(),new DataSetsModules().getInMemoryModules(),new SystemDatasetRuntimeModule().getDistributedModules(),new AbstractModule(){
    @Override protected void configure(){
      bind(NotificationFeedManager.class).to(NoOpNotificationFeedManager.class).in(Scopes.SINGLETON);
      bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
      bind(UGIProvider.class).to(UnsupportedUGIProvider.class);
    }
  }
);
  hbaseAdmin=TEST_HBASE.getHBaseAdmin();
  ddlExecutor=new HBaseDDLExecutorFactory(cConf,hbaseAdmin.getConfiguration()).get();
  tableUtil=injector.getInstance(HBaseTableUtil.class);
  ddlExecutor.createNamespaceIfNotExists(tableUtil.getHBaseNamespace(NamespaceId.SYSTEM));
  ddlExecutor.createNamespaceIfNotExists(tableUtil.getHBaseNamespace(NAMESPACE_ID));
  ddlExecutor.createNamespaceIfNotExists(tableUtil.getHBaseNamespace(NAMESPACE_ID1));
  ConfigurationTable configTable=new ConfigurationTable(hConf);
  configTable.write(ConfigurationTable.Type.DEFAULT,cConf);
  zkClientService=injector.getInstance(ZKClientService.class);
  zkClientService.startAndWait();
  txService=injector.getInstance(TransactionService.class);
  Thread t=new Thread(){
    @Override public void run(){
      txService.start();
    }
  }
;
  t.start();
  txSystemClient=injector.getInstance(TransactionSystemClient.class);
  queueClientFactory=injector.getInstance(QueueClientFactory.class);
  queueAdmin=injector.getInstance(QueueAdmin.class);
  executorFactory=injector.getInstance(TransactionExecutorFactory.class);
}

Fixed version (ground truth):
@BeforeClass public static void init() throws Exception {
  hConf=TEST_HBASE.getConfiguration();
  cConf=CConfiguration.create();
  cConf.set(Constants.Zookeeper.QUORUM,TEST_HBASE.getZkConnectionString());
  cConf.set(TxConstants.Service.CFG_DATA_TX_BIND_PORT,Integer.toString(Networks.getRandomPort()));
  cConf.set(Constants.Dataset.TABLE_PREFIX,TABLE_PREFIX);
  cConf.set(Constants.CFG_HDFS_USER,System.getProperty("String_Node_Str"));
  cConf.setLong(QueueConstants.QUEUE_CONFIG_UPDATE_FREQUENCY,10000L);
  cConf.setInt(QueueConstants.ConfigKeys.QUEUE_TABLE_PRESPLITS,4);
  cConf.setLong(TxConstants.Manager.CFG_TX_TIMEOUT,100000000L);
  cConf.setLong(TxConstants.Manager.CFG_TX_MAX_TIMEOUT,100000000L);
  injector=Guice.createInjector(new DataFabricModules().getDistributedModules(),new ConfigModule(cConf,hConf),new ZKClientModule(),new LocationRuntimeModule().getDistributedModules(),new NamespaceClientUnitTestModule().getModule(),new DiscoveryRuntimeModule().getDistributedModules(),new TransactionMetricsModule(),new AuthorizationTestModule(),new AuthorizationEnforcementModule().getInMemoryModules(),new AuthenticationContextModules().getMasterModule(),new DataSetsModules().getInMemoryModules(),new SystemDatasetRuntimeModule().getDistributedModules(),new AbstractModule(){
    @Override protected void configure(){
      bind(NotificationFeedManager.class).to(NoOpNotificationFeedManager.class).in(Scopes.SINGLETON);
      bind(OwnerAdmin.class).to(DefaultOwnerAdmin.class);
      bind(UGIProvider.class).to(UnsupportedUGIProvider.class);
    }
  }
);
  hbaseAdmin=TEST_HBASE.getHBaseAdmin();
  ddlExecutor=new HBaseDDLExecutorFactory(cConf,hbaseAdmin.getConfiguration()).get();
  tableUtil=injector.getInstance(HBaseTableUtil.class);
  ddlExecutor.createNamespaceIfNotExists(tableUtil.getHBaseNamespace(NamespaceId.SYSTEM));
  ddlExecutor.createNamespaceIfNotExists(tableUtil.getHBaseNamespace(NAMESPACE_ID));
  ddlExecutor.createNamespaceIfNotExists(tableUtil.getHBaseNamespace(NAMESPACE_ID1));
  ConfigurationTable configTable=new ConfigurationTable(hConf);
  configTable.write(ConfigurationTable.Type.DEFAULT,cConf);
  zkClientService=injector.getInstance(ZKClientService.class);
  zkClientService.startAndWait();
  txService=injector.getInstance(TransactionService.class);
  Thread t=new Thread(){
    @Override public void run(){
      txService.start();
    }
  }
;
  t.start();
  txSystemClient=injector.getInstance(TransactionSystemClient.class);
  queueClientFactory=injector.getInstance(QueueClientFactory.class);
  queueAdmin=injector.getInstance(QueueAdmin.class);
  executorFactory=injector.getInstance(TransactionExecutorFactory.class);
}