Hi Zheng,

We are using 6.3 version.
I have created a small PR that addresses this issue of better error message.
Please merge the same if it looks ok.
https://github.com/apache/lucene-solr/pull/212/files

Thanks
SG


On Sun, Jun 11, 2017 at 8:45 PM, Zheng Lin Edwin Yeo <edwinye...@gmail.com>
wrote:

> Which version of Solr are yo using?
>
> Also, I believe you should send this message to the user list at solr-user
> @lucene.apache.org
>
> Regards,
> Edwin
>
> On 12 June 2017 at 02:45, S G <sg.online.em...@gmail.com> wrote:
>
>> Hi,
>>
>> Recently I ran into an issue where the logs were showing the following:
>>
>>
>> org.apache.solr.client.solrj.impl.CloudSolrClient$RouteException: Error
>> from server at http://solr-host:8983/solr/loadtest_shard1_replica1: old
>> version and new version are not comparable: class java.lang.Long vs class
>> java.lang.Integer: null
>>         at 
>> org.apache.solr.client.solrj.impl.CloudSolrClient.directUpdate(CloudSolrClient.java:765)
>> ~[load-client.jar]
>>         at 
>> org.apache.solr.client.solrj.impl.CloudSolrClient.sendRequest(CloudSolrClient.java:1173)
>> ~[load-client.jar]
>>         at org.apache.solr.client.solrj.impl.CloudSolrClient.requestWit
>> hRetryOnStaleState(CloudSolrClient.java:1062) ~[load-client.jar]
>>         at 
>> org.apache.solr.client.solrj.impl.CloudSolrClient.request(CloudSolrClient.java:1004)
>> ~[load-client.jar]
>>         at 
>> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:149)
>> ~[load-client.jar]
>>         at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:106)
>> ~[load-client.jar]
>>         at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:123)
>> ~[load-client.jar]
>>         at WriteLoadTest$IndexWorker.addDocsToSolr(WriteLoadTest.java:629)
>> [load-client.jar]
>>         at WriteLoadTest$IndexWorker.run(WriteLoadTest.java:573)
>> [load-client.jar]
>> Caused by: 
>> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
>> Error from server at http://solr-host:8983/solr/loadtest_shard1_replica1:
>> old version and new version are not comparable: class java.lang.Long vs
>> class java.lang.Integer: null
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:593)
>> ~[load-client.jar]
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:262)
>> ~[load-client.jar]
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:251)
>> ~[load-client.jar]
>>         at 
>> org.apache.solr.client.solrj.impl.LBHttpSolrClient.doRequest(LBHttpSolrClient.java:435)
>> ~[load-client.jar]
>>         at 
>> org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:387)
>> ~[load-client.jar]
>>         at org.apache.solr.client.solrj.impl.CloudSolrClient.lambda$dir
>> ectUpdate$0(CloudSolrClient.java:742) ~[load-client.jar]
>>         at 
>> org.apache.solr.client.solrj.impl.CloudSolrClient$$Lambda$8/745780984.call(Unknown
>> Source) ~[?:?]
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> ~[?:1.8.0_51]
>>         at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolE
>> xecutor.lambda$execute$0(ExecutorUtil.java:229) ~[load-client.jar]
>>         at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolE
>> xecutor$$Lambda$7/725894523.run(Unknown Source) ~[?:?]
>>         ... 3 more
>>
>>
>> The message above is not clear at all.
>> Which document is it talking about?
>> I have so many documents being ingested and it's hard to figure out the
>> same.
>> It would have been nice if the message included a document ID too.
>>
>>
>> Thanks
>> SG
>>
>>
>>
>>
>

Reply via email to