From 28373090759080358410d90dc33beab17604d727 Mon Sep 17 00:00:00 2001 From: xvrl Date: Wed, 6 Mar 2013 19:22:15 -0800 Subject: [PATCH] do not fail on exceptions when pulling from cache --- .../java/com/metamx/druid/client/cache/MemcachedCache.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/com/metamx/druid/client/cache/MemcachedCache.java b/client/src/main/java/com/metamx/druid/client/cache/MemcachedCache.java index 8562cbf202d..c2b6c32247c 100644 --- a/client/src/main/java/com/metamx/druid/client/cache/MemcachedCache.java +++ b/client/src/main/java/com/metamx/druid/client/cache/MemcachedCache.java @@ -147,7 +147,8 @@ public class MemcachedCache implements Cache throw Throwables.propagate(e); } catch(ExecutionException e) { - throw Throwables.propagate(e); + log.warn(e, "Exception pulling item from cache"); + return null; } } @@ -240,7 +241,8 @@ public class MemcachedCache implements Cache throw Throwables.propagate(e); } catch(ExecutionException e) { - throw Throwables.propagate(e); + log.warn(e, "Exception pulling item from cache"); + return results; } }