From dc097081a64e2fbef2a0b40c6645a94f41cd59f8 Mon Sep 17 00:00:00 2001 From: nishantmonu51 Date: Fri, 7 Feb 2014 20:00:25 +0530 Subject: [PATCH] remove writeOpQueueFactory for writeQueueFactory the buffer of the element is nulled by memcache before remove is called, thus we are not able to determine the size of element while removing, We can potentially work around this by adding a wrapper to keep track of size but that will have its extra overhead, Also verified from the heap dump that the growing queue was the queue for opQueue. --- server/src/main/java/io/druid/client/cache/MemcachedCache.java | 1 - 1 file changed, 1 deletion(-) diff --git a/server/src/main/java/io/druid/client/cache/MemcachedCache.java b/server/src/main/java/io/druid/client/cache/MemcachedCache.java index a52e1b82e4b..abbfb54139c 100644 --- a/server/src/main/java/io/druid/client/cache/MemcachedCache.java +++ b/server/src/main/java/io/druid/client/cache/MemcachedCache.java @@ -69,7 +69,6 @@ public class MemcachedCache implements Cache .setOpQueueMaxBlockTime(config.getTimeout()) .setOpTimeout(config.getTimeout()) .setOpQueueFactory(queueFactory) - .setWriteOpQueueFactory(queueFactory) .build(), AddrUtil.getAddresses(config.getHosts()) ),