Program: 6035
Project: 6035
Buggy source:
@Before public void before() throws Exception {
  cConf.set(Constants.Dataset.Manager.ADDRESS,"String_Node_Str");
  cConf.setBoolean(Constants.Dangerous.UNRECOVERABLE_RESET,true);
  Configuration txConf=HBaseConfiguration.create();
  CConfigurationUtil.copyTxProperties(cConf,txConf);
  Impersonator impersonator=new Impersonator(cConf,null,null);
  Injector injector=Guice.createInjector(new ConfigModule(cConf,txConf),new DiscoveryRuntimeModule().getInMemoryModules(),new AuthorizationTestModule(),new AuthorizationEnforcementModule().getInMemoryModules(),new AuthenticationContextModules().getMasterModule(),new TransactionInMemoryModule(),new AbstractModule(){
    @Override protected void configure(){
      bind(MetricsCollectionService.class).to(NoOpMetricsCollectionService.class).in(Singleton.class);
      install(new FactoryModuleBuilder().implement(DatasetDefinitionRegistry.class,DefaultDatasetDefinitionRegistry.class).build(DatasetDefinitionRegistryFactory.class));
      bind(RemoteDatasetFramework.class);
    }
  }
);
  txManager=new TransactionManager(txConf);
  txManager.startAndWait();
  InMemoryTxSystemClient txSystemClient=new InMemoryTxSystemClient(txManager);
  TransactionSystemClientService txSystemClientService=new DelegatingTransactionSystemClientService(txSystemClient);
  DiscoveryService discoveryService=injector.getInstance(DiscoveryService.class);
  DiscoveryServiceClient discoveryServiceClient=injector.getInstance(DiscoveryServiceClient.class);
  MetricsCollectionService metricsCollectionService=injector.getInstance(MetricsCollectionService.class);
  AuthenticationContext authenticationContext=injector.getInstance(AuthenticationContext.class);
  framework=new RemoteDatasetFramework(cConf,discoveryServiceClient,registryFactory,authenticationContext);
  SystemDatasetInstantiatorFactory datasetInstantiatorFactory=new SystemDatasetInstantiatorFactory(locationFactory,framework,cConf);
  DatasetAdminService datasetAdminService=new DatasetAdminService(framework,cConf,locationFactory,datasetInstantiatorFactory,new NoOpMetadataStore(),impersonator);
  ImmutableSet<HttpHandler> handlers=ImmutableSet.<HttpHandler>of(new DatasetAdminOpHTTPHandler(datasetAdminService));
  opExecutorService=new DatasetOpExecutorService(cConf,discoveryService,metricsCollectionService,handlers);
  opExecutorService.startAndWait();
  ImmutableMap<String,DatasetModule> modules=ImmutableMap.<String,DatasetModule>builder().put("String_Node_Str",new InMemoryTableModule()).put("String_Node_Str",new CoreDatasetsModule()).putAll(DatasetMetaTableUtil.getModules()).build();
  InMemoryDatasetFramework mdsFramework=new InMemoryDatasetFramework(registryFactory,modules);
  ExploreFacade exploreFacade=new ExploreFacade(new DiscoveryExploreClient(cConf,discoveryServiceClient),cConf);
  TransactionExecutorFactory txExecutorFactory=new DynamicTransactionExecutorFactory(txSystemClient);
  AuthorizationEnforcer authorizationEnforcer=injector.getInstance(AuthorizationEnforcer.class);
  DatasetTypeManager typeManager=new DatasetTypeManager(cConf,locationFactory,txSystemClientService,txExecutorFactory,mdsFramework,DEFAULT_MODULES,impersonator);
  DatasetInstanceManager instanceManager=new DatasetInstanceManager(txSystemClientService,txExecutorFactory,mdsFramework);
  AuthorizerInstantiator authorizerInstantiator=injector.getInstance(AuthorizerInstantiator.class);
  DatasetTypeService typeService=new DatasetTypeService(typeManager,namespaceQueryAdmin,namespacedLocationFactory,authorizationEnforcer,authorizerInstantiator,authenticationContext,cConf,impersonator);
  DatasetOpExecutor opExecutor=new LocalDatasetOpExecutor(cConf,discoveryServiceClient,opExecutorService);
  DatasetInstanceService instanceService=new DatasetInstanceService(typeManager,instanceManager,opExecutor,exploreFacade,namespaceQueryAdmin,authorizationEnforcer,authorizerInstantiator,authenticationContext);
  instanceService.setAuditPublisher(inMemoryAuditPublisher);
  service=new DatasetService(cConf,discoveryService,discoveryServiceClient,typeManager,metricsCollectionService,new InMemoryDatasetOpExecutor(framework),new HashSet<DatasetMetricsReporter>(),typeService,instanceService);
  service.startAndWait();
  EndpointStrategy endpointStrategy=new RandomEndpointStrategy(discoveryServiceClient.discover(Constants.Service.DATASET_MANAGER));
  Preconditions.checkNotNull(endpointStrategy.pick(5,TimeUnit.SECONDS),"String_Node_Str",service);
  createNamespace(Id.Namespace.SYSTEM);
  createNamespace(NAMESPACE_ID);
}

Fixed version (ground truth):
@Before public void before() throws Exception {
  cConf.set(Constants.Dataset.Manager.ADDRESS,"String_Node_Str");
  cConf.setBoolean(Constants.Dangerous.UNRECOVERABLE_RESET,true);
  Configuration txConf=HBaseConfiguration.create();
  CConfigurationUtil.copyTxProperties(cConf,txConf);
  Impersonator impersonator=new Impersonator(cConf,null,null);
  Injector injector=Guice.createInjector(new ConfigModule(cConf,txConf),new DiscoveryRuntimeModule().getInMemoryModules(),new AuthorizationTestModule(),new AuthorizationEnforcementModule().getInMemoryModules(),new AuthenticationContextModules().getMasterModule(),new TransactionInMemoryModule(),new AbstractModule(){
    @Override protected void configure(){
      bind(MetricsCollectionService.class).to(NoOpMetricsCollectionService.class).in(Singleton.class);
      install(new FactoryModuleBuilder().implement(DatasetDefinitionRegistry.class,DefaultDatasetDefinitionRegistry.class).build(DatasetDefinitionRegistryFactory.class));
      bind(RemoteDatasetFramework.class);
    }
  }
);
  txManager=new TransactionManager(txConf);
  txManager.startAndWait();
  InMemoryTxSystemClient txSystemClient=new InMemoryTxSystemClient(txManager);
  TransactionSystemClientService txSystemClientService=new DelegatingTransactionSystemClientService(txSystemClient);
  DiscoveryService discoveryService=injector.getInstance(DiscoveryService.class);
  DiscoveryServiceClient discoveryServiceClient=injector.getInstance(DiscoveryServiceClient.class);
  MetricsCollectionService metricsCollectionService=injector.getInstance(MetricsCollectionService.class);
  AuthenticationContext authenticationContext=injector.getInstance(AuthenticationContext.class);
  framework=new RemoteDatasetFramework(cConf,discoveryServiceClient,registryFactory,authenticationContext);
  SystemDatasetInstantiatorFactory datasetInstantiatorFactory=new SystemDatasetInstantiatorFactory(locationFactory,framework,cConf);
  DatasetAdminService datasetAdminService=new DatasetAdminService(framework,cConf,locationFactory,datasetInstantiatorFactory,new NoOpMetadataStore(),impersonator);
  ImmutableSet<HttpHandler> handlers=ImmutableSet.<HttpHandler>of(new DatasetAdminOpHTTPHandler(datasetAdminService));
  opExecutorService=new DatasetOpExecutorService(cConf,discoveryService,metricsCollectionService,handlers);
  opExecutorService.startAndWait();
  ImmutableMap<String,DatasetModule> modules=ImmutableMap.<String,DatasetModule>builder().put("String_Node_Str",new InMemoryTableModule()).put("String_Node_Str",new CoreDatasetsModule()).putAll(DatasetMetaTableUtil.getModules()).build();
  InMemoryDatasetFramework mdsFramework=new InMemoryDatasetFramework(registryFactory,modules);
  ExploreFacade exploreFacade=new ExploreFacade(new DiscoveryExploreClient(cConf,discoveryServiceClient),cConf);
  TransactionExecutorFactory txExecutorFactory=new DynamicTransactionExecutorFactory(txSystemClient);
  AuthorizationEnforcer authorizationEnforcer=injector.getInstance(AuthorizationEnforcer.class);
  DatasetTypeManager typeManager=new DatasetTypeManager(cConf,locationFactory,txSystemClientService,txExecutorFactory,mdsFramework,DEFAULT_MODULES,impersonator);
  DatasetInstanceManager instanceManager=new DatasetInstanceManager(txSystemClientService,txExecutorFactory,mdsFramework);
  PrivilegesManager privilegesManager=injector.getInstance(PrivilegesManager.class);
  DatasetTypeService typeService=new DatasetTypeService(typeManager,namespaceQueryAdmin,namespacedLocationFactory,authorizationEnforcer,privilegesManager,authenticationContext,cConf,impersonator);
  DatasetOpExecutor opExecutor=new LocalDatasetOpExecutor(cConf,discoveryServiceClient,opExecutorService);
  DatasetInstanceService instanceService=new DatasetInstanceService(typeManager,instanceManager,opExecutor,exploreFacade,namespaceQueryAdmin,authorizationEnforcer,privilegesManager,authenticationContext);
  instanceService.setAuditPublisher(inMemoryAuditPublisher);
  service=new DatasetService(cConf,discoveryService,discoveryServiceClient,typeManager,metricsCollectionService,new InMemoryDatasetOpExecutor(framework),new HashSet<DatasetMetricsReporter>(),typeService,instanceService);
  service.startAndWait();
  EndpointStrategy endpointStrategy=new RandomEndpointStrategy(discoveryServiceClient.discover(Constants.Service.DATASET_MANAGER));
  Preconditions.checkNotNull(endpointStrategy.pick(5,TimeUnit.SECONDS),"String_Node_Str",service);
  createNamespace(Id.Namespace.SYSTEM);
  createNamespace(NAMESPACE_ID);
}