Program: 6021
Project: 6021
Buggy source:
@Inject public DatasetService(CConfiguration cConf,DiscoveryService discoveryService,DiscoveryServiceClient discoveryServiceClient,DatasetTypeManager typeManager,MetricsCollectionService metricsCollectionService,DatasetOpExecutor opExecutorClient,Set<DatasetMetricsReporter> metricReporters,DatasetTypeService datasetTypeService,DatasetInstanceService datasetInstanceService) throws Exception {
  this.typeManager=typeManager;
  DatasetTypeHandler datasetTypeHandler=new DatasetTypeHandler(datasetTypeService);
  DatasetInstanceHandler datasetInstanceHandler=new DatasetInstanceHandler(datasetInstanceService);
  NettyHttpService.Builder builder=new CommonNettyHttpServiceBuilder(cConf);
  builder.addHttpHandlers(ImmutableList.of(datasetTypeHandler,datasetInstanceHandler));
  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.metricReporters=metricReporters;
}

Fixed version (ground truth):
@Inject public DatasetService(CConfiguration cConf,DiscoveryService discoveryService,DiscoveryServiceClient discoveryServiceClient,MetricsCollectionService metricsCollectionService,DatasetOpExecutor opExecutorClient,Set<DatasetMetricsReporter> metricReporters,DatasetTypeService datasetTypeService,DatasetInstanceService datasetInstanceService) throws Exception {
  this.typeService=datasetTypeService;
  DatasetTypeHandler datasetTypeHandler=new DatasetTypeHandler(datasetTypeService);
  DatasetInstanceHandler datasetInstanceHandler=new DatasetInstanceHandler(datasetInstanceService);
  NettyHttpService.Builder builder=new CommonNettyHttpServiceBuilder(cConf);
  builder.addHttpHandlers(ImmutableList.of(datasetTypeHandler,datasetInstanceHandler));
  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.metricReporters=metricReporters;
}