Skip to content

Commit

Permalink
Cleanup cache directories before initializiing the cache (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmandeep Singh authored Sep 23, 2020
1 parent 4f62453 commit 9383d53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ public boolean isBookKeeperAlive()
this.metrics = bookKeeperMetrics.getMetricsRegistry();
this.ticker = ticker;
this.splitSize = CacheConfig.getCacheFileSplitSize(conf);
cleanupOldCacheFiles(conf);
initializeMetrics();
initializeCache(conf, ticker);
cleanupOldCacheFiles(conf);

fetchProcessor = null;
if (CacheConfig.isParallelWarmupEnabled(conf)) {
Expand Down

0 comments on commit 9383d53

Please sign in to comment.