Permalink
Browse files

re-added solr synchronization hack

  • Loading branch information...
Orbiter committed Jun 9, 2017
1 parent 6fe7359 commit c94a8c76bd204761bf6373e5d39d276aa238801c
Showing with 6 additions and 1 deletion.
  1. +6 −1 source/net/yacy/cora/federate/solr/connector/SolrServerConnector.java
@@ -50,7 +50,12 @@
public abstract class SolrServerConnector extends AbstractSolrConnector implements SolrConnector {
protected final static ConcurrentLog log = new ConcurrentLog(SolrServerConnector.class.getName());
public final static org.apache.lucene.analysis.CharArrayMap<Byte> classLoaderSynchro = new org.apache.lucene.analysis.CharArrayMap<Byte>(0, true);
// pre-instantiate this object to prevent sun.misc.Launcher$AppClassLoader deadlocks
// this is a very nasty problem; solr instantiates objects dynamically which can cause deadlocks
static {
assert classLoaderSynchro != null;
}
protected SolrClient server;
protected SolrServerConnector() {

0 comments on commit c94a8c7

Please sign in to comment.