Program: 6928
Project: 6928
Buggy source:
@Inject public DatasetService(CConfiguration cConf,NamespacedLocationFactory namespacedLocationFactory,DiscoveryService discoveryService,DiscoveryServiceClient discoveryServiceClient,DatasetTypeManager typeManager,DatasetInstanceManager instanceManager,MetricsCollectionService metricsCollectionService,DatasetOpExecutor opExecutorClient,MDSDatasetsRegistry mdsDatasets,ExploreFacade exploreFacade,Set<DatasetMetricsReporter> metricReporters,UnderlyingSystemNamespaceAdmin underlyingSystemNamespaceAdmin,UsageRegistry usageRegistry) throws Exception {
  this.typeManager=typeManager;
  DatasetTypeHandler datasetTypeHandler=new DatasetTypeHandler(typeManager,cConf,namespacedLocationFactory);
  DatasetInstanceHandler datasetInstanceHandler=new DatasetInstanceHandler(typeManager,instanceManager,opExecutorClient,exploreFacade,cConf,usageRegistry);
  UnderlyingSystemNamespaceHandler underlyingSystemNamespaceHandler=new UnderlyingSystemNamespaceHandler(underlyingSystemNamespaceAdmin);
  NettyHttpService.Builder builder=new CommonNettyHttpServiceBuilder(cConf);
  builder.addHttpHandlers(ImmutableList.of(datasetTypeHandler,datasetInstanceHandler,underlyingSystemNamespaceHandler));
  builder.setHandlerHooks(ImmutableList.of(new MetricsReporterHook(metricsCollectionService,Constants.Service.DATASET_MANAGER)));
  builder.setHost(cConf.get(Constants.Dataset.Manager.ADDRESS));
  builder.setConnectionBacklog(cConf.getInt(Constants.Dataset.Manager.BACKLOG_CONNECTIONS,Constants.Dataset.Manager.DEFAULT_BACKLOG));
  builder.setExecThreadPoolSize(cConf.getInt(Constants.Dataset.Manager.EXEC_THREADS,Constants.Dataset.Manager.DEFAULT_EXEC_THREADS));
  builder.setBossThreadPoolSize(cConf.getInt(Constants.Dataset.Manager.BOSS_THREADS,Constants.Dataset.Manager.DEFAULT_BOSS_THREADS));
  builder.setWorkerThreadPoolSize(cConf.getInt(Constants.Dataset.Manager.WORKER_THREADS,Constants.Dataset.Manager.DEFAULT_WORKER_THREADS));
  this.httpService=builder.build();
  this.discoveryService=discoveryService;
  this.discoveryServiceClient=discoveryServiceClient;
  this.opExecutorClient=opExecutorClient;
  this.mdsDatasets=mdsDatasets;
  this.metricReporters=metricReporters;
}

Fixed version (ground truth):
@Inject public DatasetService(CConfiguration cConf,NamespacedLocationFactory namespacedLocationFactory,DiscoveryService discoveryService,DiscoveryServiceClient discoveryServiceClient,DatasetTypeManager typeManager,DatasetInstanceManager instanceManager,MetricsCollectionService metricsCollectionService,DatasetOpExecutor opExecutorClient,MDSDatasetsRegistry mdsDatasets,ExploreFacade exploreFacade,Set<DatasetMetricsReporter> metricReporters,StorageProviderNamespaceAdmin storageProviderNamespaceAdmin,UsageRegistry usageRegistry) throws Exception {
  this.typeManager=typeManager;
  DatasetTypeHandler datasetTypeHandler=new DatasetTypeHandler(typeManager,cConf,namespacedLocationFactory);
  DatasetInstanceHandler datasetInstanceHandler=new DatasetInstanceHandler(typeManager,instanceManager,opExecutorClient,exploreFacade,cConf,usageRegistry);
  UnderlyingSystemNamespaceHandler underlyingSystemNamespaceHandler=new UnderlyingSystemNamespaceHandler(storageProviderNamespaceAdmin);
  NettyHttpService.Builder builder=new CommonNettyHttpServiceBuilder(cConf);
  builder.addHttpHandlers(ImmutableList.of(datasetTypeHandler,datasetInstanceHandler,underlyingSystemNamespaceHandler));
  builder.setHandlerHooks(ImmutableList.of(new MetricsReporterHook(metricsCollectionService,Constants.Service.DATASET_MANAGER)));
  builder.setHost(cConf.get(Constants.Dataset.Manager.ADDRESS));
  builder.setConnectionBacklog(cConf.getInt(Constants.Dataset.Manager.BACKLOG_CONNECTIONS,Constants.Dataset.Manager.DEFAULT_BACKLOG));
  builder.setExecThreadPoolSize(cConf.getInt(Constants.Dataset.Manager.EXEC_THREADS,Constants.Dataset.Manager.DEFAULT_EXEC_THREADS));
  builder.setBossThreadPoolSize(cConf.getInt(Constants.Dataset.Manager.BOSS_THREADS,Constants.Dataset.Manager.DEFAULT_BOSS_THREADS));
  builder.setWorkerThreadPoolSize(cConf.getInt(Constants.Dataset.Manager.WORKER_THREADS,Constants.Dataset.Manager.DEFAULT_WORKER_THREADS));
  this.httpService=builder.build();
  this.discoveryService=discoveryService;
  this.discoveryServiceClient=discoveryServiceClient;
  this.opExecutorClient=opExecutorClient;
  this.mdsDatasets=mdsDatasets;
  this.metricReporters=metricReporters;
}