leventov commented on a change in pull request #8116: remove unnecessary lock
in ForegroundCachePopulator leading to a lot of contention
URL: https://github.com/apache/incubator-druid/pull/8116#discussion_r305977397
##########
File path:
server/src/main/java/org/apache/druid/client/cache/BackgroundCachePopulator.java
##########
@@ -38,6 +38,14 @@
import java.util.concurrent.ExecutorService;
import java.util.function.Function;
+/**
+ * {@link CachePopulator} implementation that uses a {@link ExecutorService}
thread pool to populate a cache in the
+ * background. Used if config "druid.*.cache.numBackgroundThreads" is greater
than 0. If maximum cache entry size,
+ * specified by config "druid.*.cache.maxEntrySize", is exceeded, this {@link
CachePopulator} implementation will
+ * be a bit less efficient than {@link ForegroundCachePopulator} which can
stop retaining values early, in exchange
Review comment:
I don't understand the relation with `maxEntrySize`, again, and what does
"can stop retaining values early" mean. Please reword.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]