PersistentRedisCache: failure to write segment is not an error
Contribution by Axel Hanikel
@@ -175,7 +175,7 @@ public class PersistentRedisCache extends AbstractPersistentCache {
redis.set(key, bos.toByteArray(), setParamsWithExpire);
cacheSize.addAndGet(bos.size());
} catch (Throwable t) {
- logger.error("Error writing segment {} to cache: {}", segmentId, t);
+ logger.debug("Unable to write segment {} to cache: {}", segmentId, t.getMessage());
} finally {
writesPending.remove(segmentId);
}
