Program: 5880
Project: 5880
Buggy source:
@Inject KafkaLogWriterPlugin(CConfiguration cConf,FileMetaDataManager fileMetaDataManager,CheckpointManagerFactory checkpointManagerFactory,RootLocationFactory rootLocationFactory,NamespacedLocationFactory namespacedLocationFactory,Impersonator impersonator) throws Exception {
  this.serializer=new LoggingEventSerializer();
  this.messageTable=TreeBasedTable.create();
  this.logBaseDir=cConf.get(LoggingConfiguration.LOG_BASE_DIR);
  Preconditions.checkNotNull(this.logBaseDir,"String_Node_Str");
  LOG.debug(String.format("String_Node_Str",this.logBaseDir));
  long retentionDurationDays=cConf.getLong(LoggingConfiguration.LOG_RETENTION_DURATION_DAYS,LoggingConfiguration.DEFAULT_LOG_RETENTION_DURATION_DAYS);
  Preconditions.checkArgument(retentionDurationDays > 0,"String_Node_Str",retentionDurationDays);
  long maxLogFileSizeBytes=cConf.getLong(LoggingConfiguration.LOG_MAX_FILE_SIZE_BYTES,100 * 1000 * 1000);
  Preconditions.checkArgument(maxLogFileSizeBytes > 0,"String_Node_Str",maxLogFileSizeBytes);
  int syncIntervalBytes=cConf.getInt(LoggingConfiguration.LOG_FILE_SYNC_INTERVAL_BYTES,10 * 1000 * 1000);
  Preconditions.checkArgument(syncIntervalBytes > 0,"String_Node_Str",syncIntervalBytes);
  long checkpointIntervalMs=cConf.getLong(LoggingConfiguration.LOG_SAVER_CHECKPOINT_INTERVAL_MS,LoggingConfiguration.DEFAULT_LOG_SAVER_CHECKPOINT_INTERVAL_MS);
  Preconditions.checkArgument(checkpointIntervalMs > 0,"String_Node_Str",checkpointIntervalMs);
  long inactiveIntervalMs=cConf.getLong(LoggingConfiguration.LOG_SAVER_INACTIVE_FILE_INTERVAL_MS,LoggingConfiguration.DEFAULT_LOG_SAVER_INACTIVE_FILE_INTERVAL_MS);
  Preconditions.checkArgument(inactiveIntervalMs > 0,"String_Node_Str",inactiveIntervalMs);
  this.eventBucketIntervalMs=cConf.getLong(LoggingConfiguration.LOG_SAVER_EVENT_BUCKET_INTERVAL_MS,LoggingConfiguration.DEFAULT_LOG_SAVER_EVENT_BUCKET_INTERVAL_MS);
  Preconditions.checkArgument(this.eventBucketIntervalMs > 0,"String_Node_Str",this.eventBucketIntervalMs);
  this.maxNumberOfBucketsInTable=cConf.getLong(LoggingConfiguration.LOG_SAVER_MAXIMUM_INMEMORY_EVENT_BUCKETS,LoggingConfiguration.DEFAULT_LOG_SAVER_MAXIMUM_INMEMORY_EVENT_BUCKETS);
  Preconditions.checkArgument(this.maxNumberOfBucketsInTable > 0,"String_Node_Str",this.maxNumberOfBucketsInTable);
  long topicCreationSleepMs=cConf.getLong(LoggingConfiguration.LOG_SAVER_TOPIC_WAIT_SLEEP_MS,LoggingConfiguration.DEFAULT_LOG_SAVER_TOPIC_WAIT_SLEEP_MS);
  Preconditions.checkArgument(topicCreationSleepMs > 0,"String_Node_Str",topicCreationSleepMs);
  logCleanupIntervalMins=cConf.getInt(LoggingConfiguration.LOG_CLEANUP_RUN_INTERVAL_MINS,LoggingConfiguration.DEFAULT_LOG_CLEANUP_RUN_INTERVAL_MINS);
  Preconditions.checkArgument(logCleanupIntervalMins > 0,"String_Node_Str",logCleanupIntervalMins);
  AvroFileWriter avroFileWriter=new AvroFileWriter(fileMetaDataManager,namespacedLocationFactory,logBaseDir,serializer.getAvroSchema(),maxLogFileSizeBytes,syncIntervalBytes,inactiveIntervalMs,impersonator);
  checkpointManager=checkpointManagerFactory.create(cConf.get(Constants.Logging.KAFKA_TOPIC),CHECKPOINT_ROW_KEY_PREFIX);
  this.logFileWriter=new CheckpointingLogFileWriter(avroFileWriter,checkpointManager,checkpointIntervalMs);
  long retentionDurationMs=TimeUnit.MILLISECONDS.convert(retentionDurationDays,TimeUnit.DAYS);
  this.logCleanup=new LogCleanup(fileMetaDataManager,rootLocationFactory,retentionDurationMs,impersonator);
}

Fixed version (ground truth):
@Inject KafkaLogWriterPlugin(CConfiguration cConf,FileMetaDataManager fileMetaDataManager,CheckpointManagerFactory checkpointManagerFactory,RootLocationFactory rootLocationFactory,NamespacedLocationFactory namespacedLocationFactory,Impersonator impersonator) throws Exception {
  this.serializer=new LoggingEventSerializer();
  this.messageTable=TreeBasedTable.create();
  this.logBaseDir=cConf.get(LoggingConfiguration.LOG_BASE_DIR);
  Preconditions.checkNotNull(this.logBaseDir,"String_Node_Str");
  LOG.debug(String.format("String_Node_Str",this.logBaseDir));
  long retentionDurationDays=cConf.getLong(LoggingConfiguration.LOG_RETENTION_DURATION_DAYS,LoggingConfiguration.DEFAULT_LOG_RETENTION_DURATION_DAYS);
  Preconditions.checkArgument(retentionDurationDays > 0,"String_Node_Str",retentionDurationDays);
  long maxLogFileSizeBytes=cConf.getLong(LoggingConfiguration.LOG_MAX_FILE_SIZE_BYTES,100 * 1000 * 1000);
  Preconditions.checkArgument(maxLogFileSizeBytes > 0,"String_Node_Str",maxLogFileSizeBytes);
  int syncIntervalBytes=cConf.getInt(LoggingConfiguration.LOG_FILE_SYNC_INTERVAL_BYTES,10 * 1000 * 1000);
  Preconditions.checkArgument(syncIntervalBytes > 0,"String_Node_Str",syncIntervalBytes);
  long checkpointIntervalMs=cConf.getLong(LoggingConfiguration.LOG_SAVER_CHECKPOINT_INTERVAL_MS,LoggingConfiguration.DEFAULT_LOG_SAVER_CHECKPOINT_INTERVAL_MS);
  Preconditions.checkArgument(checkpointIntervalMs > 0,"String_Node_Str",checkpointIntervalMs);
  long maxFileLifetimeMs=cConf.getLong(LoggingConfiguration.LOG_SAVER_MAX_FILE_LIFETIME,LoggingConfiguration.DEFAULT_LOG_SAVER_MAX_FILE_LIFETIME_MS);
  Preconditions.checkArgument(maxFileLifetimeMs > 0,"String_Node_Str",maxFileLifetimeMs);
  if (cConf.get(LoggingConfiguration.LOG_SAVER_INACTIVE_FILE_INTERVAL_MS) != null) {
    LOG.warn("String_Node_Str",LoggingConfiguration.LOG_SAVER_INACTIVE_FILE_INTERVAL_MS,LoggingConfiguration.LOG_SAVER_MAX_FILE_LIFETIME);
  }
  this.eventBucketIntervalMs=cConf.getLong(LoggingConfiguration.LOG_SAVER_EVENT_BUCKET_INTERVAL_MS,LoggingConfiguration.DEFAULT_LOG_SAVER_EVENT_BUCKET_INTERVAL_MS);
  Preconditions.checkArgument(this.eventBucketIntervalMs > 0,"String_Node_Str",this.eventBucketIntervalMs);
  this.maxNumberOfBucketsInTable=cConf.getLong(LoggingConfiguration.LOG_SAVER_MAXIMUM_INMEMORY_EVENT_BUCKETS,LoggingConfiguration.DEFAULT_LOG_SAVER_MAXIMUM_INMEMORY_EVENT_BUCKETS);
  Preconditions.checkArgument(this.maxNumberOfBucketsInTable > 0,"String_Node_Str",this.maxNumberOfBucketsInTable);
  long topicCreationSleepMs=cConf.getLong(LoggingConfiguration.LOG_SAVER_TOPIC_WAIT_SLEEP_MS,LoggingConfiguration.DEFAULT_LOG_SAVER_TOPIC_WAIT_SLEEP_MS);
  Preconditions.checkArgument(topicCreationSleepMs > 0,"String_Node_Str",topicCreationSleepMs);
  logCleanupIntervalMins=cConf.getInt(LoggingConfiguration.LOG_CLEANUP_RUN_INTERVAL_MINS,LoggingConfiguration.DEFAULT_LOG_CLEANUP_RUN_INTERVAL_MINS);
  Preconditions.checkArgument(logCleanupIntervalMins > 0,"String_Node_Str",logCleanupIntervalMins);
  AvroFileWriter avroFileWriter=new AvroFileWriter(fileMetaDataManager,namespacedLocationFactory,logBaseDir,serializer.getAvroSchema(),maxLogFileSizeBytes,syncIntervalBytes,maxFileLifetimeMs,impersonator);
  checkpointManager=checkpointManagerFactory.create(cConf.get(Constants.Logging.KAFKA_TOPIC),CHECKPOINT_ROW_KEY_PREFIX);
  this.logFileWriter=new CheckpointingLogFileWriter(avroFileWriter,checkpointManager,checkpointIntervalMs);
  long retentionDurationMs=TimeUnit.MILLISECONDS.convert(retentionDurationDays,TimeUnit.DAYS);
  this.logCleanup=new LogCleanup(fileMetaDataManager,rootLocationFactory,retentionDurationMs,impersonator);
}