Re: Exception in unit tests for distributed search component

2014-11-27 Thread Shalin Shekhar Mangar
Is that the complete stack trace? There are multiple indexDoc methods in
that class. Some of them assert that the response from control collection
and the default collection are the same. However, in this case, it seems
that an AssertionError is being sent from the server itself as a
RemoteSolrException.

Without more details about the test case and the server response, I can't
say much. Maybe you should try printing out the response from the server to
see what is being returned.

On Wed, Nov 26, 2014 at 5:11 AM, Suchi Amalapurapu su...@bloomreach.com
wrote:

 Hi
 I am trying to test a custom distributed component with solr 4.6.1 which
 extends
 BaseDistributedSearchTestCase but end up with the following error.

 There are lot of tests in the solr code base which extend
 BaseDistributedSearchTestCase. Not sure what is wrong here.
 Suchi

 testDistribSearch(com.test.DistributedTest)  Time elapsed: 2.288 sec  
 ERROR!

 org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
 java.lang.AssertionError

 at __randomizedtesting.SeedInfo.seed([EB2AD095C59CFFE7:6ACC5E8DB2C39FDB]:0)

 at

 org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:495)

 at

 org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:199)

 at

 org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)

 at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)

 at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)

 at

 org.apache.solr.BaseDistributedSearchTestCase.indexDoc(BaseDistributedSearchTestCase.java:436)




-- 
Regards,
Shalin Shekhar Mangar.


Exception in unit tests for distributed search component

2014-11-25 Thread Suchi Amalapurapu
Hi
I am trying to test a custom distributed component with solr 4.6.1 which
extends
BaseDistributedSearchTestCase but end up with the following error.

There are lot of tests in the solr code base which extend
BaseDistributedSearchTestCase. Not sure what is wrong here.
Suchi

testDistribSearch(com.test.DistributedTest)  Time elapsed: 2.288 sec  
ERROR!

org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:
java.lang.AssertionError

at __randomizedtesting.SeedInfo.seed([EB2AD095C59CFFE7:6ACC5E8DB2C39FDB]:0)

at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:495)

at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:199)

at
org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)

at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)

at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)

at
org.apache.solr.BaseDistributedSearchTestCase.indexDoc(BaseDistributedSearchTestCase.java:436)