From 927aaa95a64355da72c5b014b25363e9f4bebe41 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 13 Aug 2014 00:59:11 +0200 Subject: [PATCH] concurrency bugfix --- source/net/yacy/search/schema/CollectionConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/search/schema/CollectionConfiguration.java b/source/net/yacy/search/schema/CollectionConfiguration.java index 178ca8005..898179b7a 100644 --- a/source/net/yacy/search/schema/CollectionConfiguration.java +++ b/source/net/yacy/search/schema/CollectionConfiguration.java @@ -96,6 +96,7 @@ import org.apache.solr.common.SolrDocument; import org.apache.solr.common.SolrDocumentList; import org.apache.solr.common.SolrException; import org.apache.solr.common.SolrInputDocument; +import org.eclipse.jetty.util.ConcurrentHashSet; public class CollectionConfiguration extends SchemaConfiguration implements Serializable { @@ -1228,7 +1229,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri // process all documents in collection final Map hostExtentCache = new HashMap(); // a mapping from the host id to the number of documents which contain this host-id - final Set uniqueURLs = new HashSet(); + final Set uniqueURLs = new ConcurrentHashSet(); // will be used in a concurrent environment try { final Set omitFields = new HashSet(); omitFields.add(CollectionSchema.process_sxt.getSolrFieldName());