Skip to content

Commit

Permalink
Rename DEFAULT_ROLLOVER_TIME_MILLISECONDS to DEFAULT_ROLLOVER_CHECK_I…
Browse files Browse the repository at this point in the history
…NTERVAL_DURATION (#7)

A leftover from #4
  • Loading branch information
frsv authored Dec 13, 2022
1 parent ed97cdb commit 50d8e74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class EventLogger {
private static final int MAX_RETRIES = 2;
private static final Duration SHUTDOWN_WAIT_TIME = Duration.ofSeconds(5);
private static final int QUERY_EVENTS_QUEUE_DEFAULT_SIZE = 64;
private static final Duration DEFAULT_ROLLOVER_TIME_MILLISECONDS = Duration.ofSeconds(600);
private static final Duration DEFAULT_ROLLOVER_CHECK_INTERVAL_DURATION = Duration.ofMinutes(10);

private final DatePartitionedRecordsWriterFactory logger;
private final EventRecordConstructor eventRecordConstructor;
Expand Down Expand Up @@ -97,7 +97,7 @@ protected EventLogger(HiveConf conf, Clock clock) {
long rolloverIntervalMilliseconds =
conf.getTimeDuration(
HIVE_QUERY_EVENTS_ROLLOVER_CHECK_INTERVAL.getConfName(),
DEFAULT_ROLLOVER_TIME_MILLISECONDS.toMillis(),
DEFAULT_ROLLOVER_CHECK_INTERVAL_DURATION.toMillis(),
TimeUnit.MILLISECONDS);

logWriter.scheduleWithFixedDelay(
Expand Down

0 comments on commit 50d8e74

Please sign in to comment.