Skip to content

Commit

Permalink
Lowering log level of cache eviction (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmandeep Singh authored Sep 30, 2020
1 parent 16c2e1e commit c82bd58
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import com.google.common.cache.Cache;
import com.google.common.cache.RemovalCause;
import com.google.common.hash.BloomFilter;
import com.google.common.io.Closer;
import com.google.common.util.concurrent.Striped;
import com.qubole.rubix.spi.CacheConfig;
import com.qubole.rubix.spi.CacheUtil;
Expand All @@ -34,10 +33,10 @@
import java.util.concurrent.ExecutionException;
import java.util.concurrent.locks.Lock;

import static com.qubole.rubix.spi.utils.DataSizeUnits.BYTES;
import static com.qubole.rubix.spi.CacheConfig.getBlockSize;
import static com.qubole.rubix.spi.CacheUtil.DUMMY_MODE_GENERATION_NUMBER;
import static com.qubole.rubix.spi.CacheUtil.UNKONWN_GENERATION_NUMBER;
import static com.qubole.rubix.spi.utils.DataSizeUnits.BYTES;

/**
* Created by stagra on 29/12/15.
Expand Down Expand Up @@ -311,7 +310,7 @@ public synchronized OptionalInt setBlocksCached(long startBlock, long endBlock)
public void closeAndCleanup(RemovalCause cause, Cache cache)
{
if (cause != RemovalCause.REPLACED) {
log.warn("Evicting " + getRemotePath() + " due to " + cause);
log.debug("Evicting " + getRemotePath() + " due to " + cause);
deleteFiles(cache);
}
}
Expand Down

0 comments on commit c82bd58

Please sign in to comment.