Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MEILIDEKCL authored Jul 27, 2022
1 parent 5d96646 commit c227b59
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ public Groups(Configuration conf, final Timer timer) {
CommonConfigurationKeys.
HADOOP_SECURITY_GROUPS_CACHE_BACKGROUND_RELOAD_THREADS_DEFAULT);
parseStaticMapping(conf);


if(cacheTimeout<=0){
throw new IllegalArgumentException(
"hadoop.security.groups.cache.secs should be larger than 0",
new IllegalArgumentException("hadoop.security.groups.cache.secs should be larger than 0"));
}
this.timer = timer;
this.cache = CacheBuilder.newBuilder()
.refreshAfterWrite(cacheTimeout, TimeUnit.MILLISECONDS)
Expand Down

0 comments on commit c227b59

Please sign in to comment.