Re: Better error message? (old version and new version are not comparable)

2017-06-12 Thread S G
Thanks Tomas,
I have read the contribution docs and also created a JIRA at
https://issues.apache.org/jira/browse/SOLR-10877
New PR is at https://github.com/apache/lucene-solr/pull/213
Please review the same.

-SG


On Mon, Jun 12, 2017 at 10:28 AM, Tomas Fernandez Lobbe 
wrote:

> Hi SG,
> You should create a Jira issue, then if you can rename your PR to include
> the Jira issue code in the title (that’s the way to link the Jira issue to
> the Github PR). Also, take a look at https://wiki.apache.org/
> solr/HowToContribute.
>
> Tomás
>
> On Jun 12, 2017, at 9:14 AM, S G  wrote:
>
> 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  > wrote:
>
>> Which version of Solr are yo using?
>>
>> Also, I believe you should send this message to the user list at
>> solr-u...@lucene.apache.org
>>
>> Regards,
>> Edwin
>>
>> On 12 June 2017 at 02:45, S G  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
>>>
>>>
>>>
>>>
>>
>
>


Re: Better error message? (old version and new version are not comparable)

2017-06-12 Thread Tomas Fernandez Lobbe
Hi SG, 
You should create a Jira issue, then if you can rename your PR to include the 
Jira issue code in the title (that’s the way to link the Jira issue to the 
Github PR). Also, take a look at https://wiki.apache.org/solr/HowToContribute.

Tomás

> On Jun 12, 2017, at 9:14 AM, S G  wrote:
> 
> 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  > wrote:
> Which version of Solr are yo using?
> 
> Also, I believe you should send this message to the user list at 
> solr-u...@lucene.apache.org 
> 
> Regards,
> Edwin
> 
> On 12 June 2017 at 02:45, S G  > 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.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
> 
> 
> 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
> 
> 
> 
> 
> 



Re: Better error message? (old version and new version are not comparable)

2017-06-12 Thread S G
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 
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  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
>>
>>
>>
>>
>


Re: Better error message? (old version and new version are not comparable)

2017-06-11 Thread Zheng Lin Edwin Yeo
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  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.
> 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
>
>
> 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
>
>
>
>


Better error message? (old version and new version are not comparable)

2017-06-11 Thread S G
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.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


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