Sachin Goyal created SOLR-10877:
-----------------------------------

             Summary: Better error message instead of "old version and new 
version are not comparable"
                 Key: SOLR-10877
                 URL: https://issues.apache.org/jira/browse/SOLR-10877
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 6.5.1, 6.3
            Reporter: Sachin Goyal



I ran into an issue where the logs were showing the following:

{color:darkred}
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.requestWithRetryOnStaleState(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$directUpdate$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$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
 ~\[load-client.jar\]
        at 
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$$Lambda$7/725894523.run(Unknown
 Source) ~\[?:?\]
        ... 3 more
{color}

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.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to