Re: EmbeddedSolrServer and junit

2011-01-31 Thread dan sutton
Hi, I think I've found the cause: src/java/org/apache/solr/util/TestHarness.java, query(String handler, SolrQueryRequest req) calls SolrRequestInfo.setRequestInfo(new SolrRequestInfo(req, rsp)), which my componenet also calls in the same thread hence the error. The fix was to override assertQ t

EmbeddedSolrServer and junit

2011-01-31 Thread dan sutton
Hi, I have 2 cores CoreA and CoreB, when updating content on CoreB, I use solrj and EmbeddedSolrServer to query CoreA for information, however when I do this with my junit tests (which also use EmbeddedSolrServer to query) I get this error SEVERE: Previous SolrRequestInfo was not closed! junit.f