Skip to content

Commit

Permalink
YARN-7707. Fix CheckStyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Jul 5, 2023
1 parent 908b42e commit 7fd1d6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ protected void serviceStart() throws Exception {
}

// Schedule PolicyGenerator
long policyGeneratorIntervalMillis = getConfig().getLong(
long policyGeneratorIntervalMillis = getConfig().getTimeDuration(
YarnConfiguration.GPG_POLICY_GENERATOR_INTERVAL_MS,
YarnConfiguration.DEFAULT_GPG_POLICY_GENERATOR_INTERVAL_MS);
YarnConfiguration.DEFAULT_GPG_POLICY_GENERATOR_INTERVAL_MS, TimeUnit.MILLISECONDS);
if(policyGeneratorIntervalMillis > 0){
this.scheduledExecutorService.scheduleAtFixedRate(this.policyGenerator,
0, policyGeneratorIntervalMillis, TimeUnit.MILLISECONDS);
Expand Down

0 comments on commit 7fd1d6d

Please sign in to comment.