From 8d78ba0373d88fb9e7a3f669998048c0967d9716 Mon Sep 17 00:00:00 2001 From: Brian Caruso Date: Tue, 16 Jul 2013 17:27:14 -0400 Subject: [PATCH] Change to comments in VClassGroupCache --- .../mannlib/vitro/webapp/dao/jena/VClassGroupCache.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/VClassGroupCache.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/VClassGroupCache.java index 4be2ed142..4ea91aed7 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/VClassGroupCache.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/dao/jena/VClassGroupCache.java @@ -56,11 +56,15 @@ import edu.cornell.mannlib.vitro.webapp.utils.threads.VitroBackgroundThread; * A synchronous rebuild can be performed with VClassGroupCache.doSynchronousRebuild() * * This class should handle the condition where Solr is not available. + * It will not throw an exception but it will return a empty list of classes + * or class groups. + * * VClassGroupCache.doSynchronousRebuild() and the RebuildGroupCacheThread will try * to connect to the Solr server a couple of times and then give up. * - * As of VIVO release 1.4, the counts come from the Solr index. Before that they - * came from the DAOs. + * As of VIVO release 1.4, the counts come from the Solr index. If the + * solr index is not built or if there were problems building the index, + * the class counts from VClassGroupCache will be incorrect. */ public class VClassGroupCache implements IndexingEventListener { private static final Log log = LogFactory.getLog(VClassGroupCache.class);